forked from borgbase/vorta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvorta.spec
84 lines (74 loc) · 2.68 KB
/
vorta.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# -*- mode: python -*-
import os
import sys
from pathlib import Path
from vorta.config import (
APP_NAME,
APP_ID_DARWIN
)
from vorta._version import __version__ as APP_VERSION
BLOCK_CIPHER = None
APP_APPCAST_URL = 'https://borgbase.github.io/vorta/appcast.xml'
# it is assumed that the cwd is the git repo dir:
SRC_DIR = os.path.join(os.getcwd(), 'src', 'vorta')
a = Analysis([os.path.join(SRC_DIR, '__main__.py')],
pathex=[SRC_DIR],
binaries=[],
datas=[
(os.path.join(SRC_DIR, 'assets/UI/*'), 'assets/UI'),
(os.path.join(SRC_DIR, 'assets/icons/*'), 'assets/icons'),
(os.path.join(SRC_DIR, 'assets/exclusion_presets/*'), 'assets/exclusion_presets'),
(os.path.join(SRC_DIR, 'i18n/qm/*'), 'vorta/i18n/qm'),
],
hiddenimports=[
'vorta.keyring.darwin',
'vorta.keyring.kwallet',
'vorta.keyring.secretstorage',
'pkg_resources.py2_warn',
],
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=f"vorta-{sys.platform}",
bootloader_ignore_signals=True,
console=False,
debug=False,
strip=False,
upx=True)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
debug=False,
strip=False,
upx=False,
name='vorta')
app = BUNDLE(coll,
name='Vorta.app',
icon='icon.icns',
bundle_identifier=None,
info_plist={
'CFBundleName': APP_NAME,
'CFBundleDisplayName': APP_NAME,
'CFBundleIdentifier': APP_ID_DARWIN,
'NSHighResolutionCapable': 'True',
'LSAppNapIsDisabled': 'True',
'NSRequiresAquaSystemAppearance': 'False',
'LSUIElement': '1',
'LSMinimumSystemVersion': '10.14',
'CFBundleShortVersionString': APP_VERSION,
'CFBundleVersion': APP_VERSION,
'SUFeedURL': APP_APPCAST_URL,
'LSEnvironment': {
'LC_CTYPE': 'en_US.UTF-8',
'PATH': '/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin'
}
})