forked from openstenoproject/plover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyinstaller.spec
26 lines (25 loc) · 1.06 KB
/
pyinstaller.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
# -*- mode: python -*-
#
# To build the package for windows:
# - Make sure all dependencies are installed.
# - Get pyInstaller and put it where you like. Let's call the location PYINSTALLPATH.
# - Run: python -O application\plover to make sure all the .pyo files are generated.
# - Run: python -O PYINSTALLPATH\Configure.py
# - Run: python -O PYINSTALLPATH\Build.py pyinstaller.spec
a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), os.path.join(HOMEPATH,'support\\useUnicode.py'), 'application\plover'],
pathex=['C:\\Documents and Settings\\Rachel Rivera\\Desktop\\hesky\\plover\\plover'])
pyz = PYZ(a.pure)
exe = EXE( pyz,
a.scripts + [('O','','OPTION')],
a.binaries,
a.zipfiles,
a.datas,
Tree('plover\\assets'),
name=os.path.join('dist', 'plover.exe'),
debug=False,
strip=False,
upx=False,
console=False,
icon='plover\\assets\\plover.ico' )
app = BUNDLE(exe,
name=os.path.join('dist', 'plover.exe.app'))