-
Notifications
You must be signed in to change notification settings - Fork 7
/
musclex_mac.spec
64 lines (55 loc) · 1.92 KB
/
musclex_mac.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- mode: python -*-
block_cipher = None
# pyinstaller --clean -y musclex_mac.spec
# cp /usr/local/Cellar/libpng/1.6.34/lib/libpng16.16.dylib dist/musclex/libpng16.16.dylib
# mkdir dist/musclex/pyFAI/utils
# cp -r dist/musclex/ dist/musclex.app/Contents/MacOS
a = Analysis(['musclex/main.py'],
pathex=['.'],
binaries=[],
datas=[('musclex/tests/testImages', 'testImages'),('musclex/tests/testResults', 'testResults'),
('musclex/tests/test_images', 'test_images'),('musclex/tests/test_logs', 'test_logs')],
hiddenimports=['PyMca5','cmath'],
hookspath=['hooks'],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
# analysis for launcher
la = Analysis(['musclex/launcher.py'],
pathex=['.'],
hiddenimports=['PyMca5','cmath'],
hookspath=['hooks'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
MERGE((a, 'main', 'musclex'),
(la, 'launcher', 'musclex-launcher'))
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='musclex-main',
debug=False,
strip=False,
upx=True,
console=True )
lpyz = PYZ(la.pure, la.zipped_data,
cipher=block_cipher)
lexe = EXE(lpyz,
la.scripts,
exclude_binaries=True,
name='musclex-launcher',
debug=False,
strip=False,
upx=True,
console=False )
coll = COLLECT(exe, lexe,
a.binaries, la.binaries,
a.zipfiles, la.zipfiles,
a.datas, la.datas,
strip=False,
upx=True,
name='musclex')