-
Notifications
You must be signed in to change notification settings - Fork 7
/
acm_check-in.spec
executable file
·32 lines (30 loc) · 1.57 KB
/
acm_check-in.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
# -*- mode: python -*-
import sys
a = Analysis(['acm_check-in/Check-in.py'],
hiddenimports=[],
hookspath=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
# Static link the Visual C++ Redistributable DLLs if on Windows
a.binaries + [('msvcp100.dll', 'C:\\Windows\\System32\\msvcp100.dll', 'BINARY'),
('msvcr100.dll', 'C:\\Windows\\System32\\msvcr100.dll', 'BINARY')]
if sys.platform == 'win32' else a.binaries,
a.zipfiles,
a.datas + [('images/green_check_mark.png', 'acm_check-in/images/green_check_mark.png', 'DATA'),
('images/loading_icon.gif', 'acm_check-in/images/loading_icon.gif', 'DATA'),
('images/login_logo.png', 'acm_check-in/images/login_logo.png', 'DATA'),
('images/magnetic_card.png', 'acm_check-in/images/magnetic_card.png', 'DATA'),
('images/main_logo.png', 'acm_check-in/images/main_logo.png', 'DATA'),
('images/red_x_mark.png', 'acm_check-in/images/red_x_mark.png', 'DATA'),
('images/trophy.png', 'acm_check-in/images/trophy.png', 'DATA')],
name=os.path.join('dist', 'ACM-Check-in' + ('.exe' if sys.platform == 'win32' else '')),
debug=False,
strip=None,
upx=True,
console=False)
# Build a .app if on OS X
if sys.platform == 'darwin':
app = BUNDLE(exe,
name='ACM-Check-in.app',
icon=None)