vorta/vorta.spec

74 lines
2.3 KiB
RPMSpec
Raw Normal View History

2018-10-26 16:01:59 +00:00
# -*- mode: python -*-
import os
import sys
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')
a = Analysis(['src/vorta/__main__.py'],
pathex=[SRC_DIR],
binaries=[
(f"bin/{sys.platform}/borg", 'bin'), # (<borg fat binary for this platform>, <dest. folder>)
],
2018-10-26 16:01:59 +00:00
datas=[
('src/vorta/assets/UI/*', 'assets/UI'),
('src/vorta/assets/icons/*', 'assets/icons'),
('src/vorta/i18n/qm/*', 'vorta/i18n/qm'),
2018-10-26 16:01:59 +00:00
],
hiddenimports=[
2019-01-24 02:30:35 +00:00
'vorta.views.dark.collection_rc',
'vorta.views.light.collection_rc',
],
2018-10-26 16:01:59 +00:00
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=BLOCK_CIPHER,
2018-10-26 16:01:59 +00:00
noarchive=False)
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=f"vorta-{sys.platform}",
2018-10-26 16:01:59 +00:00
debug=False,
bootloader_ignore_signals=True,
2018-10-26 16:01:59 +00:00
strip=False,
upx=True,
runtime_tmpdir=None,
console=True)
2018-10-26 16:01:59 +00:00
app = BUNDLE(exe,
name='Vorta.app',
icon='src/vorta/assets/icons/app-icon.icns',
bundle_identifier='com.borgbase.client.macos',
2018-10-26 16:01:59 +00:00
info_plist={
'NSHighResolutionCapable': 'True',
'LSUIElement': '1',
2019-04-22 07:41:53 +00:00
'CFBundleShortVersionString': '0.6.19',
'CFBundleVersion': '0.6.19',
'NSAppleEventsUsageDescription': 'Please allow',
'SUFeedURL': 'https://borgbase.github.io/vorta/appcast.xml',
'LSEnvironment': {
'LC_CTYPE': 'en_US.UTF-8'
}
})
if CREATE_VORTA_DIR:
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
name='vorta-dir')