2020-06-06 10:45:08 +10:00
|
|
|
function actions.installer()
|
|
|
|
os.execute("cp utils/ser.lua pkg/init.lua")
|
2020-06-19 05:49:36 +10:00
|
|
|
os.execute("mkdir -p pkg/installer_dat")
|
|
|
|
os.execute("cp installer_dat/bios_list.lua pkg/installer_dat")
|
|
|
|
os.execute("cp installer_dat/package_list.lua pkg/installer_dat")
|
|
|
|
os.execute("mkdir -p pkg/installer_dat/lang")
|
|
|
|
local h = io.popen("ls installer_dat/lang | grep lua", "r")
|
|
|
|
for line in h:lines() do
|
2020-06-19 06:34:28 +10:00
|
|
|
os.execute("luacomp installer_dat/lang/"..line.." -O pkg/installer_dat/lang/"..line)
|
2020-06-19 05:49:36 +10:00
|
|
|
end
|
|
|
|
h:close()
|
2020-06-06 10:45:08 +10:00
|
|
|
makeselfextract("pkg", "release/zorya-neo-installer.lua")
|
|
|
|
end
|
|
|
|
|
|
|
|
actions[#actions+1] = "installer"
|