Skip to content

Commit 2a4b739

Browse files
committed
Add PyInstaller spec file.
1 parent 135889d commit 2a4b739

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MANIFEST
3030
# Usually these files are written by a python script from a template
3131
# before PyInstaller builds the exe, so as to inject date/other infos into it.
3232
*.manifest
33-
*.spec
33+
# *.spec
3434

3535
# Installer logs
3636
pip-log.txt

diffcast.spec

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
import sys
3+
4+
block_cipher = None
5+
6+
a = Analysis(['diffcast\\app.py'],
7+
pathex=[],
8+
binaries=[],
9+
datas=[('diffcast\\images\\icon.ico', 'images')],
10+
hiddenimports=['PyQt6.QtPrintSupport'],
11+
hookspath=[],
12+
hooksconfig={},
13+
runtime_hooks=[],
14+
excludes=['PyQt5', 'tkinter'],
15+
win_no_prefer_redirects=False,
16+
win_private_assemblies=False,
17+
cipher=block_cipher,
18+
noarchive=False)
19+
pyz = PYZ(a.pure, a.zipped_data,
20+
cipher=block_cipher)
21+
22+
exe = EXE(pyz,
23+
a.scripts,
24+
[],
25+
exclude_binaries=True,
26+
name='app',
27+
debug=False,
28+
bootloader_ignore_signals=False,
29+
strip=False,
30+
upx=True,
31+
console=False,
32+
disable_windowed_traceback=False,
33+
target_arch=None,
34+
codesign_identity=None,
35+
entitlements_file=None,
36+
icon='diffcast\\images\\icon.ico')
37+
coll = COLLECT(exe,
38+
a.binaries,
39+
a.zipfiles,
40+
a.datas,
41+
strip=False,
42+
upx=True,
43+
upx_exclude=[],
44+
name='DiffCast')

0 commit comments

Comments
 (0)