Skip to content

Commit

Permalink
Refactor .gitignore and pyinstaller-gui.spec files
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubAndrysek committed Sep 22, 2024
1 parent 49a640f commit 2902e3c
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ MANIFEST
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
Expand Down
64 changes: 64 additions & 0 deletions ForrestHub-app/pyinstaller-gui.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

a = Analysis(
['gui-logs.py'],
pathex=['.'],
binaries=[],
datas=[
('templates', 'templates'),
('assets', 'assets'),
('pages', 'pages'),
('config.py', '.'),
('app', 'app'),
('data.json', '.'), # Include your data file
],
hiddenimports=[
'app.custom_loader',
'app.database',
'app.errors',
'app.routes',
'app.socketio_events',
'app.utils',
'engineio.async_drivers.threading',
'socketio',
'flask_socketio',
'eventlet',
'dns',
'dns.resolver',
'engineio',
],
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='ForrestHub',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/img/forrestHub.ico'
)
63 changes: 63 additions & 0 deletions ForrestHub-app/pyinstaller.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

a = Analysis(
['run.py'],
pathex=['.'],
binaries=[],
datas=[
('templates', 'templates'),
('assets', 'assets'),
('games', 'games'),
('config.py', '.'),
('app', 'app'),
],
hiddenimports=[
'app.custom_loader',
'app.database',
'app.errors',
'app.routes',
'app.socketio_events',
'app.utils',
'engineio.async_drivers.threading',
'socketio',
'flask_socketio',
'eventlet',
'dns',
'dns.resolver',
'engineio',
],
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='ForrestHub',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/img/forrestHubIcon.ico'
)

0 comments on commit 2902e3c

Please sign in to comment.