1
0
mirror of https://github.com/Adorable-Catgirl/LuaComp.git synced 2025-04-12 22:58:18 +10:00

Can't get directive & minifier providers to work on Windows for some reason

I temporarily commented them out for Windows

TODO: test on Linux
This commit is contained in:
Atirut Wattanamongkol 2021-04-16 18:03:57 +07:00
parent 20aa15556a
commit 6fd6b55a48
3 changed files with 15 additions and 11 deletions

View File

@ -1,9 +1,7 @@
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
export HOME = %appdata%
# If you're using Windows, change the path to wherever you put LuaComp in. # If you're using Windows, change the path to wherever you put LuaComp in.
COMMAND = lua53 "./luacomp.lua" COMMAND = lua53 "./luacomp.lua"
# COMMAND = lua53 "C:/Standalone Programs/luacomp-5.3.lua" # COMMAND = lua53 "C:/Standalone Programs/luacomp.lua"
else else
COMMAND = luacomp COMMAND = luacomp

View File

@ -1,4 +1,7 @@
local directive_paths = { local directive_paths = {}
"/usr/share/luacomp/directives", if os.getenv("OS") == "Windows_NT" then
os.getenv("HOME").."/.local/share/luacomp/directives" -- table.insert(directive_paths, os.getenv("appdata") .. "/luacomp/directives")
} else
table.insert(directive_paths, "/usr/share/luacomp/directives")
table.insert(directive_paths, os.getenv("HOME") .. "/.local/share/luacomp/directives")
end

View File

@ -16,10 +16,13 @@
limitations under the License. limitations under the License.
]] ]]
local postproc_paths = { local postproc_paths = {}
"/usr/share/luacomp/postproc", if os.getenv("OS") == "Windows_NT" then
os.getenv("HOME").."/.local/share/luacomp/postproc" -- table.insert(postproc_paths, os.getenv("appdata") .. "/luacomp/postproc")
} else
table.insert(postproc_paths, "/usr/share/luacomp/postproc")
table.insert(postproc_paths, os.getenv("HOME") .. "/.local/share/luacomp/postproc")
end
local providers = {} local providers = {}