Improve lua build process + folder structure
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
local args = { ... }
|
||||
|
||||
local token = args[1]
|
||||
|
||||
local existing = fs.exists("auth.lua")
|
||||
if not token and not existing then
|
||||
error("A token is required.")
|
||||
@@ -16,8 +16,8 @@ elseif token then
|
||||
error("Token failed!")
|
||||
end
|
||||
end
|
||||
local files = { "main.lua", "json.lua", "framebuffer.lua", "ringbuffer.lua", "socket.lua" }
|
||||
local files = { {% for filename in file_list %} "{{ filename }}", {% endfor %} }
|
||||
for _, file in ipairs(files) do
|
||||
fs.delete(file)
|
||||
shell.run(("wget %s/lua/%s"):format(path, file))
|
||||
shell.run(("wget %s/lua/%s %s"):format(path, file, file))
|
||||
end
|
||||
Reference in New Issue
Block a user