2018-10-26 16:01:59 +00:00
|
|
|
# -*- mode: python -*-
|
|
|
|
|
2019-01-13 02:03:00 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
CREATE_VORTA_DIR = False # create dist/vorta-dir/ output?
|
|
|
|
BLOCK_CIPHER = None
|
|
|
|
|
|
|
|
# it is assumed that the cwd is the git repo dir:
|
|
|
|
REPO_DIR = os.path.abspath('.')
|
|
|
|
SRC_DIR = os.path.join(REPO_DIR, 'src')
|
|
|
|
|
2018-10-26 16:01:59 +00:00
|
|
|
|
2018-10-29 05:49:25 +00:00
|
|
|
a = Analysis(['src/vorta/__main__.py'],
|
2019-01-13 02:03:00 +00:00
|
|
|
pathex=[SRC_DIR],
|
2018-10-27 07:00:56 +00:00
|
|
|
binaries=[
|
2019-01-13 02:03:00 +00:00
|
|
|
('bin/borg', 'bin'), # (<borg fat binary for this platform>, <dest. folder>)
|
2018-10-27 07:00:56 +00:00
|
|
|
],
|
2018-10-26 16:01:59 +00:00
|
|
|
datas=[
|
2018-10-29 05:49:25 +00:00
|
|
|
('src/vorta/assets/UI/*', 'assets/UI'),
|
|
|
|
('src/vorta/assets/icons/*', 'assets/icons'),
|
2019-01-20 14:46:01 +00:00
|
|
|
('src/vorta/i18n/qm/*', 'vorta/i18n/qm'),
|
2018-10-26 16:01:59 +00:00
|
|
|
],
|
2019-01-13 02:03:00 +00:00
|
|
|
hiddenimports=[
|
|
|
|
'vorta.views.collection_rc',
|
2019-01-24 02:30:35 +00:00
|
|
|
'vorta.views.dark.collection_rc',
|
|
|
|
'vorta.views.light.collection_rc',
|
2018-12-05 09:58:31 +00:00
|
|
|
],
|
2018-10-26 16:01:59 +00:00
|
|
|
hookspath=[],
|
|
|
|
runtime_hooks=[],
|
|
|
|
excludes=[],
|
|
|
|
win_no_prefer_redirects=False,
|
|
|
|
win_private_assemblies=False,
|
2019-01-13 02:03:00 +00:00
|
|
|
cipher=BLOCK_CIPHER,
|
2018-10-26 16:01:59 +00:00
|
|
|
noarchive=False)
|
2019-01-13 02:03:00 +00:00
|
|
|
|
|
|
|
pyz = PYZ(a.pure, a.zipped_data, cipher=BLOCK_CIPHER)
|
|
|
|
|
2018-10-26 16:01:59 +00:00
|
|
|
exe = EXE(pyz,
|
|
|
|
a.scripts,
|
|
|
|
a.binaries,
|
|
|
|
a.zipfiles,
|
|
|
|
a.datas,
|
|
|
|
[],
|
|
|
|
name='vorta',
|
|
|
|
debug=False,
|
2018-11-05 15:07:42 +00:00
|
|
|
bootloader_ignore_signals=True,
|
2018-10-26 16:01:59 +00:00
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
runtime_tmpdir=None,
|
2019-01-13 02:03:00 +00:00
|
|
|
console=True)
|
2018-10-28 15:40:38 +00:00
|
|
|
|
2018-10-26 16:01:59 +00:00
|
|
|
app = BUNDLE(exe,
|
|
|
|
name='Vorta.app',
|
2018-10-29 05:49:25 +00:00
|
|
|
icon='src/vorta/assets/icons/app-icon.icns',
|
2018-10-28 15:40:38 +00:00
|
|
|
bundle_identifier='com.borgbase.client.macos',
|
2018-10-26 16:01:59 +00:00
|
|
|
info_plist={
|
2019-01-13 02:03:00 +00:00
|
|
|
'NSHighResolutionCapable': 'True',
|
|
|
|
'LSUIElement': '1',
|
2019-02-02 04:35:22 +00:00
|
|
|
'CFBundleShortVersionString': '0.6.7',
|
|
|
|
'CFBundleVersion': '0.6.7',
|
2019-01-13 02:03:00 +00:00
|
|
|
'NSAppleEventsUsageDescription': 'Please allow',
|
|
|
|
'SUFeedURL': 'https://borgbase.github.io/vorta/appcast.xml',
|
|
|
|
})
|
|
|
|
|
|
|
|
if CREATE_VORTA_DIR:
|
2018-10-27 07:00:56 +00:00
|
|
|
coll = COLLECT(exe,
|
|
|
|
a.binaries,
|
|
|
|
a.zipfiles,
|
|
|
|
a.datas,
|
|
|
|
strip=False,
|
|
|
|
name='vorta-dir')
|