changes for build
This commit is contained in:
parent
723bf79791
commit
e0d2e1f2ba
7 changed files with 16 additions and 0 deletions
7
build.sh
Normal file
7
build.sh
Normal 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
9
cli.py
Normal 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
BIN
src/icon.icns
Normal file
Binary file not shown.
BIN
src/icon.ico
Normal file
BIN
src/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
BIN
src/icon.png
Normal file
BIN
src/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
BIN
src/icon.xcf
Normal file
BIN
src/icon.xcf
Normal file
Binary file not shown.
Loading…
Reference in a new issue