forked from adrianhdez929/crw-sweeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CrownSweeper.spec
60 lines (52 loc) · 1.44 KB
/
CrownSweeper.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
# -*- mode: python -*-
import sys
import os
import os.path
import platform
block_cipher = None
os_type = sys.platform
base_dir = os.path.dirname(os.path.realpath('__file__'))
add_files = [
('img/screenshot.png','/img'),
('img/sweeper.ico','/img')
]
binary_files = [
('UI/About.ui','/UI'),
('UI/Notification.ui','/UI'),
('UI/PasswordPop.ui','/UI'),
('UI/SweeperMainPage.ui','/UI'),
('UI/TxPop.ui','/UI'),
]
a = Analysis(['src/sweeper.py'],
pathex=[base_dir],
binaries=binary_files,
datas=add_files,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='CrownSweeper',
debug=False,
strip=False,
upx=False,
console=False,
icon=os.path.join('img',('sweeper.%s' % ('icns' if os_type=='darwin' else 'ico'))))
if os_type == 'darwin':
app = BUNDLE(exe,
name='CrownSweeper.app',
icon='img/sweeper.icns',
bundle_identifier=None,
info_plist={
'NSHighResolutionCapable': 'True'
}
)