mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
62 lines
1.3 KiB
Python
62 lines
1.3 KiB
Python
# -*- mode: python -*-
|
|
|
|
import platform
|
|
p = platform.system()
|
|
|
|
version = open('resources/version.txt').read().strip()
|
|
|
|
a = Analysis(
|
|
['scripts/onionshare-gui'],
|
|
pathex=['.'],
|
|
binaries=None,
|
|
datas=[
|
|
('../resources/images/*', 'images'),
|
|
('../resources/locale/*', 'locale'),
|
|
('../resources/html/*', 'html'),
|
|
('../resources/license.txt', '.'),
|
|
('../resources/version.txt', '.'),
|
|
('../resources/wordlist.txt', '.')
|
|
],
|
|
hiddenimports=[],
|
|
hookspath=[],
|
|
runtime_hooks=[],
|
|
excludes=['jinja2.asyncsupport'],
|
|
win_no_prefer_redirects=False,
|
|
win_private_assemblies=False,
|
|
cipher=None)
|
|
|
|
pyz = PYZ(
|
|
a.pure, a.zipped_data,
|
|
cipher=None)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
exclude_binaries=True,
|
|
name='onionshare',
|
|
debug=False,
|
|
strip=False,
|
|
upx=True,
|
|
console=False)
|
|
|
|
coll = COLLECT(
|
|
exe,
|
|
a.binaries,
|
|
a.zipfiles,
|
|
a.datas,
|
|
strip=False,
|
|
upx=True,
|
|
name='onionshare')
|
|
|
|
if p == 'Darwin':
|
|
app = BUNDLE(
|
|
coll,
|
|
name='OnionShare.app',
|
|
icon='install/onionshare.icns',
|
|
bundle_identifier='com.micahflee.onionshare',
|
|
info_plist={
|
|
'CFBundleShortVersionString': version,
|
|
'NSHighResolutionCapable': 'True'
|
|
}
|
|
)
|