-
Notifications
You must be signed in to change notification settings - Fork 0
/
musync.spec
70 lines (63 loc) · 1.93 KB
/
musync.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
65
66
67
68
69
70
# -*- mode: python ; coding: utf-8 -*-
from importlib import metadata
from os import sep
import re
block_cipher = None
datas=[('modules', 'modules')]
dynamic_dependencies=[
# Needed by KWallet keyring backend
("dbus", "directory"),
# Needed by secret service keyring backend
("secretstorage", "directory"),
("jeepney", "directory"),
("cryptography", "directory")
]
for d, t in dynamic_dependencies:
try:
m = __import__(d)
if t == "directory":
datas.append((m.__path__[0], d))
else:
datas.append((m.__file__, re.sub(".*\{}".format(sep), "", m.__file__)))
except Exception as e:
pass
# Needed for finding entry points for dynamically loading keyring backends
pattern = re.compile("\{0}keyring-[0-9][^\{0}]+\.(egg|dist)-info$".format(sep))
for i in metadata.Distribution.discover():
if pattern.search(str(i._path)):
datas.append((str(i._path), re.sub(".*\{}".format(sep), "", str(i._path))))
break
a = Analysis(['musync.py'],
binaries=[],
datas=datas,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='musync',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='musync')
app = BUNDLE(coll,
name='muSync.app',
bundle_identifier='link.musync')