forked from brewsterkahle/archivecd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyinstaller.onefile.spec
More file actions
executable file
·33 lines (29 loc) · 938 Bytes
/
pyinstaller.onefile.spec
File metadata and controls
executable file
·33 lines (29 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- mode: python -*-
from distutils.version import StrictVersion
import sys
sys.path.append(os.getcwd())
import wizard
v = StrictVersion(wizard.ArchiveWizard.version)
major, minor, patch = v.version
assert patch == 0
name = 'ArchiveCD-{major}.{minor:03d}.exe'.format(major=major, minor=minor)
a = Analysis(['wizard.py'],
pathex=['y:\\archivecd'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None)
onefile_binaries = a.binaries + [('discid.dll', 'discid.dll', 'BINARY'),
('qt4_plugins/imageformats/qjpeg4.dll', 'imageformats/qjpeg4.dll', 'BINARY'),
]
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
Tree('images', prefix='images'),
onefile_binaries,
a.zipfiles,
a.datas,
name=name,
debug=False,
strip=None,
upx=True,
console=True )