added compiling script, added pyinstaller to requirements.txt

This commit is contained in:
Nick Dyer 2021-05-30 00:15:59 -04:00
parent 5e6819bd3c
commit c3056ab58d
3 changed files with 18 additions and 4 deletions

4
.gitignore vendored
View File

@ -128,8 +128,6 @@ dmypy.json
# Pyre type checker
.pyre/
# pocket-friends compile script
/compile.bat
# save file
/pocket_friends/game_files/save.json

15
compile.py Normal file
View File

@ -0,0 +1,15 @@
import os
import PyInstaller.__main__
import pocket_friends
script_dir = os.path.dirname(__file__)
PyInstaller.__main__.run([
'{0}/pocket_friends/__main__.py'.format(script_dir),
'--clean',
'--noconsole',
'--onefile',
'--name=pocket_friends-{0}'.format(pocket_friends.__version__),
'--collect-all=pocket_friends',
'--icon={0}/pocket_friends/game_files/resources/images/icon/icon.ico'.format(script_dir)
])

View File

@ -1 +1,2 @@
pygame==1.9.4
pyinstaller