Skip to content

Commit ab60556

Browse files
committed
Use separate PyInstaller spec files for Linux and Windows
1 parent 67b5e50 commit ab60556

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed
File renamed without changes.

taggui-windows.spec

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
from PyInstaller.utils.hooks import collect_data_files
3+
4+
datas = [('clip-vit-base-patch32', 'clip-vit-base-patch32'), ('images/icon.ico', 'images')]
5+
datas += collect_data_files('xformers')
6+
7+
block_cipher = None
8+
9+
10+
a = Analysis(
11+
['taggui/run_gui.py'],
12+
pathex=['taggui'],
13+
binaries=[],
14+
datas=datas,
15+
hiddenimports=[],
16+
hookspath=[],
17+
hooksconfig={},
18+
runtime_hooks=[],
19+
excludes=[],
20+
win_no_prefer_redirects=False,
21+
win_private_assemblies=False,
22+
cipher=block_cipher,
23+
noarchive=False,
24+
module_collection_mode={
25+
'auto_gptq': 'pyz+py',
26+
'xformers': 'pyz+py',
27+
},
28+
)
29+
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
30+
31+
exe = EXE(
32+
pyz,
33+
a.scripts,
34+
[],
35+
exclude_binaries=True,
36+
name='taggui',
37+
debug=False,
38+
bootloader_ignore_signals=False,
39+
strip=False,
40+
upx=True,
41+
console=False,
42+
disable_windowed_traceback=False,
43+
argv_emulation=False,
44+
target_arch=None,
45+
codesign_identity=None,
46+
entitlements_file=None,
47+
icon=['images/icon.ico'],
48+
contents_directory='_taggui',
49+
)
50+
coll = COLLECT(
51+
exe,
52+
a.binaries,
53+
a.zipfiles,
54+
a.datas,
55+
strip=False,
56+
upx=True,
57+
upx_exclude=[],
58+
name='taggui',
59+
)

0 commit comments

Comments
 (0)