-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyinst_windows.spec
27 lines (24 loc) · 992 Bytes
/
pyinst_windows.spec
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
# -*- mode: python -*-
gtkdir = os.path.join('C:','Python27','Lib','site-packages','gtk-2.0','runtime')
gtkrc_dir = os.path.join('share','themes','MS-Windows','gtk-2.0')
engines_dir = os.path.join('lib','gtk-2.0','2.10.0','engines')
extra_datas = [ ('gtkrc',os.path.join(gtkdir,gtkrc_dir,'gtkrc'),'DATA') ]
extra_binaries = [ (os.path.join(engines_dir,'libwimp.dll'),
os.path.join(gtkdir,engines_dir,'libwimp.dll'),'BINARY') ]
a = Analysis(['MainWindow.py'],
pathex=['Z:\\home\\eric\\pyCharGen'],
hiddenimports=[],
hookspath=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries + extra_binaries,
a.zipfiles,
a.datas + extra_datas,
name=os.path.join('dist', 'pyCharGen.exe'),
debug=False,
strip=None,
upx=True,
console=False )
app = BUNDLE(exe,
name=os.path.join('dist', 'pyCharGen.exe.app'))