added compiling script, added pyinstaller to requirements.txt
This commit is contained in:
parent
5e6819bd3c
commit
c3056ab58d
4
.gitignore
vendored
4
.gitignore
vendored
@ -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
15
compile.py
Normal 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)
|
||||
])
|
@ -1 +1,2 @@
|
||||
pygame==1.9.4
|
||||
pyinstaller
|
Loading…
Reference in New Issue
Block a user