diff --git a/pyinstaller.spec b/pyinstaller.spec new file mode 100644 index 0000000..0104e0b --- /dev/null +++ b/pyinstaller.spec @@ -0,0 +1,43 @@ +# -*- mode: python -*- + +block_cipher = None + + +a = Analysis(['Tetris2000.py'], + pathex=[], + binaries=[], + datas=[ + ("backgrounds/*", "backgrounds"), + ("fonts/*.ttf", "fonts"), + ("fonts/*.otf", "fonts"), + ("icons/*.ico", "icons"), + ("icons/splash_screen.png", "icons"), + ("locale/*.qm", "locale"), + ("musics/*.mp3", "musics"), + ("sfx/*.wav", "sfx") + ], + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=["PyQt4", "PySide", "PySide2"], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + exclude_binaries=True, + name='Tetris2000', + debug=False, + strip=False, + upx=False, + console=False, + icon='icons\icon.ico') +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=False, + name='Tetris2000') \ No newline at end of file