1
0
mirror of https://github.com/Adorable-Catgirl/LuaComp.git synced 2024-11-14 22:18:05 +11:00
LuaComp/make_release.lua

18 lines
524 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")
os.execute("luacomp -xlua"..luaexec[i].." -mnone -O build/luacomp-static-"..luaexec[i].." src/staticinit.lua")
os.execute("chmod +x build/luacomp-"..luaexec[i])
os.execute("chmod +x build/luacomp-static-"..luaexec[i])
end
os.execute("cp -v build/luacomp-".._VERSION:sub(5).." luacomp")