Skip to content

Commit

Permalink
update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sniper00 committed Oct 29, 2024
1 parent 103a97c commit 5ddb704
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ newaction {
]])
end,
macosx = function ()
os.execute("brew install premake")
os.execute("premake5 gmake2 --cc=clang")
os.execute("make -j4 config=release")
end,
Expand All @@ -354,13 +353,15 @@ newaction {
os.execute("powershell Compress-Archive -Path moon.exe, lua.dll, lualib, service, clib -DestinationPath moon-windows.zip README.md")
os.execute("echo Checking if moon-windows.zip was created...")
os.execute("if exist moon-windows.zip (echo moon-windows.zip created successfully.) else (echo Failed to create moon-windows.zip.)")
os.execute([[echo "moon-windows.zip" > .zip_name]])
end,
linux = function ()
os.execute([[
#!/bin/bash
rm -f moon-linux.zip
mkdir -p clib
zip -r moon-linux.zip moon liblua.so lualib service clib/*.so moon.debug liblua.so.debug README.md
echo "moon-linux.zip" > .zip_name
]])
end,
macosx = function ()
Expand All @@ -369,6 +370,7 @@ newaction {
rm -f moon-macosx.zip
mkdir -p clib
zip -r moon-macosx.zip moon liblua.dylib lualib service clib/*.dylib README.md
echo "moon-macosx.zip" > .zip_name
]])
end,
}
Expand Down

0 comments on commit 5ddb704

Please sign in to comment.