1
Fork 0

changes for build

This commit is contained in:
Andy Killorin 2021-01-14 09:51:26 -06:00
parent 723bf79791
commit e0d2e1f2ba
No known key found for this signature in database
GPG key ID: 549CE32BAC1E3D4B
7 changed files with 16 additions and 0 deletions

7
build.sh Normal file
View file

@ -0,0 +1,7 @@
rm -rf "dist/rise to fall.app"
rm -rf "dist/rise to fall"
pyinstaller cli.py -y -w -n "rise to fall" --add-data="src/levels/testlevel.json:levels" --icon="src/icon.icns"
codesign --remove-signature "dist/rise to fall/Python"
codesign --remove-signature "dist/rise to fall.app/Contents/MacOS/Python"
#codesign --remove-signature "dist/fall to rise"

9
cli.py Normal file
View file

@ -0,0 +1,9 @@
import sys, os, src.main
if __name__ == "__main__":
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
os.chdir(sys._MEIPASS)
game = src.main.RiseToFall()
game.run();

BIN
src/icon.icns Normal file

Binary file not shown.

BIN
src/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
src/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

BIN
src/icon.xcf Normal file

Binary file not shown.