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)
export HOME = %appdata%
# If you're using Windows, change the path to wherever you put LuaComp in.
COMMAND = lua53 "./luacomp.lua"
# COMMAND = lua53 "C:/Standalone Programs/luacomp-5.3.lua"
# COMMAND = lua53 "C:/Standalone Programs/luacomp.lua"
else
COMMAND = luacomp

View File

@ -1,4 +1,7 @@
local directive_paths = {
"/usr/share/luacomp/directives",
os.getenv("HOME").."/.local/share/luacomp/directives"
}
local directive_paths = {}
if os.getenv("OS") == "Windows_NT" then
-- 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.
]]
local postproc_paths = {
"/usr/share/luacomp/postproc",
os.getenv("HOME").."/.local/share/luacomp/postproc"
}
local postproc_paths = {}
if os.getenv("OS") == "Windows_NT" then
-- 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 = {}