forked from offspot/kiwix-hotspot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kiwix-hotspot-macos.spec
59 lines (56 loc) · 2.04 KB
/
kiwix-hotspot-macos.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
# -*- mode: python -*-
import os
import sys
import subprocess
sys.path += [os.path.join(os.getcwd(), 'kiwix-hotspot')]
from version import get_version_str, get_short_version_str
output = subprocess.check_output(["ls", "qemu"])
files = output.decode('utf-8').splitlines()
block_cipher = None
a = Analysis(['kiwix-hotspot/__main__.py'],
pathex=['.'],
binaries=[("qemu/" + file, '.') for file in files],
datas=[('ui.glade', '.'),
('contents.json', '.'),
('etcher.gif', '.'),
('kiwix-hotspot-logo.png', '.'),
('aria2c', '.'),
('ca-certificates.crt', '.'),
('ansiblecube', 'ansiblecube'),
('etcher-cli', 'etcher-cli'),
('mbr.img', '.'),
('vexpress-boot', 'vexpress-boot')],
hiddenimports=['gui', 'cli', 'image', 'cache', 'wipe', 'pkg_resources.py2_warn'],
hookspath=['additional-hooks'],
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,
exclude_binaries=True,
name='kiwix-hotspot',
debug=False,
strip=False,
upx=True,
console=False)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='kiwix-hotspot')
app = BUNDLE(coll,
name='Kiwix Hotspot.app',
icon='kiwix-hotspot-logo.icns',
bundle_identifier='org.kiwix.hotspot',
info_plist={
'CFBundleDisplayName': 'Kiwix Hotspot',
'CFBundleShortVersionString': get_version_str(),
'CFBundleVersion': get_short_version_str(),
'NSHumanReadableCopyright': 'Kiwix'
})