From cafefd95ba00c0ea43d1e89b562dfd363912b861 Mon Sep 17 00:00:00 2001 From: OyeMad Date: Sun, 9 Apr 2023 12:28:58 +0530 Subject: [PATCH] added packaging files --- hunt.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ requirements.txt | 1 + 2 files changed, 55 insertions(+) create mode 100644 hunt.spec diff --git a/hunt.spec b/hunt.spec new file mode 100644 index 0000000..218eb34 --- /dev/null +++ b/hunt.spec @@ -0,0 +1,54 @@ +# -*- mode: python ; coding: utf-8 -*- +from PyInstaller.utils.hooks import collect_data_files + +datas = [] +datas += collect_data_files('media') + + +block_cipher = None + + +a = Analysis( + ['hunt.py'], + pathex=[], + binaries=[], + datas=datas, + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False, +) +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='hunt', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +) +app = BUNDLE( + exe, + name='hunt.app', + icon=None, + bundle_identifier=None, +) diff --git a/requirements.txt b/requirements.txt index 49f851d..f34ae59 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ pygame==2.3.0 +pyinstaller \ No newline at end of file