onionshare/install/pyinstaller.spec

59 lines
1.1 KiB
RPMSpec
Raw Normal View History

2016-04-10 17:20:18 -04:00
# -*- mode: python -*-
import platform
system = platform.system()
2016-04-10 17:20:18 -04:00
block_cipher = None
a = Analysis(
['scripts/onionshare-gui'],
2016-04-10 17:20:18 -04:00
pathex=['.'],
binaries=None,
datas=[
('../images/*', 'images'),
('../locale/*', 'locale'),
('../onionshare/*.html', 'html'),
('../version.txt', '.')
2016-04-10 17:20:18 -04:00
],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(
a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
exclude_binaries=True,
name='onionshare',
2016-04-10 17:20:18 -04:00
debug=False,
strip=False,
upx=True,
console=True)
2016-04-10 17:20:18 -04:00
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='onionshare')
2016-04-10 17:20:18 -04:00
if system == 'Darwin':
app = BUNDLE(
coll,
name='OnionShare.app',
icon='install/onionshare.icns',
bundle_identifier='com.micahflee.onionshare',
info_plist={
'NSHighResolutionCapable': 'True'
}
)