1
0
mirror of https://github.com/Adorable-Catgirl/LuaComp.git synced 2024-11-01 08:00:56 +11:00
LuaComp/make_release.lua

20 lines
607 B
Lua
Raw Normal View History

2020-03-19 05:23:39 +11:00
local luaexec = {
"5.4",
"5.3",
"5.2",
"5.1",
"jit"
}
os.execute("rm -rf build")
os.execute("mkdir build")
for i=1, #luaexec do
os.execute("luacomp -xlua"..luaexec[i].." -mluamin -O build/luacomp-"..luaexec[i].." src/init.lua")
2021-06-29 02:00:15 +10:00
--os.execute("luacomp -xlua"..luaexec[i].." -mnone -O build/luacomp-static-"..luaexec[i].." src/staticinit.lua")
2020-03-19 05:23:39 +11:00
os.execute("chmod +x build/luacomp-"..luaexec[i])
2021-06-29 02:00:15 +10:00
--os.execute("chmod +x build/luacomp-static-"..luaexec[i])
2020-03-19 05:23:39 +11:00
end
2021-06-29 02:00:15 +10:00
os.execute("LIBLUACOMP=y luacomp -O build/libluacomp.lua src/libluacomp.lua")
2020-03-19 05:23:39 +11:00
os.execute("cp -v build/luacomp-".._VERSION:sub(5).." luacomp")