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 28, 2024
1 parent 3a8d639 commit a8c8a6c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,9 @@ end

local function cleanup()
os.remove("moon")
os.remove("moon.exe")
os.remove("moon.debug")
os.remove("lua.dll")
os.remove("liblua.so")
os.remove("liblua.so.debug")
os.remove("liblua.dylib")
os.remove("moon.*")
os.remove("lua.*")
os.remove("liblua.*")
os.rmdir("build/obj")
os.rmdir("build/bin")
os.rmdir(".vs")
Expand Down Expand Up @@ -353,7 +350,7 @@ newaction {
os.execute("if exist moon-windows.zip del /f moon-windows.zip")
os.execute("if not exist clib mkdir clib")
os.execute("echo Compressing files into moon-windows.zip...")
os.execute("powershell Compress-Archive -Path moon.exe, lua.dll, lualib, service, clib -DestinationPath moon-windows.zip")
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.)")
end,
Expand All @@ -362,15 +359,15 @@ newaction {
#!/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
zip -r moon-linux.zip moon liblua.so lualib service clib/*.so moon.debug liblua.so.debug README.md
]])
end,
macosx = function ()
os.execute([[
#!/bin/bash
rm -f moon-linux.zip
rm -f moon-macosx.zip
mkdir -p clib
zip -r moon-linux.zip moon liblua.dylib lualib service clib/*.dylib
zip -r moon-macosx.zip moon liblua.dylib lualib service clib/*.dylib README.md
]])
end,
}
Expand Down

0 comments on commit a8c8a6c

Please sign in to comment.