-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathapp.spec
51 lines (44 loc) · 1.64 KB
/
app.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
import platform
# -*- mode: python -*-
block_cipher = None
if platform.system() == 'Windows':
a = Analysis(['app/__main__.py'],
pathex=['app'],
binaries=[('LICENSE','.'), ('app/external/exiftool.exe','external'),('app/external/dji_thermal_sdk_v1.5_20240507','external/dji_thermal_sdk_v1.5_20240507'), ('app/external/autel', 'external/autel')],
datas=[('resources/icons/ADIAT.ico','.'),('app/algorithms.conf','.')],
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
excludes=None,
cipher=block_cipher)
elif platform.system() == 'Darwin':
a = Analysis(['app/__main__.py'],
pathex=['app'],
binaries=[('LICENSE','.')],
datas=[('resources/icons/ADIAT.ico','.'),('app/algorithms.conf','.')],
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
excludes=None,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='ADIAT',
debug=False,
strip=False,
upx=True,
console=False,
icon='resources/icons/ADIAT.ico')
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='ADIAT')
app = BUNDLE(coll,
name='ADIAT.app',
icon='resources/icons/ADIAT.ico',
bundle_identifier=None)