2018-01-14 07:41:27 -08:00
|
|
|
# -*- mode: python -*-
|
|
|
|
|
2018-09-19 13:05:39 -07:00
|
|
|
import platform
|
|
|
|
|
2018-01-14 07:41:27 -08:00
|
|
|
block_cipher = None
|
|
|
|
|
2018-09-19 13:05:39 -07:00
|
|
|
binaries = [
|
|
|
|
('./unrar/libunrar.so', './'),
|
|
|
|
]
|
|
|
|
|
|
|
|
if platform.system() == "Windows":
|
|
|
|
# add ssl qt libraries not discovered automatically
|
|
|
|
binaries.extend([
|
|
|
|
('./venv/Lib/site-packages/PyQt5/Qt/bin/libeay32.dll', './PyQt5/Qt/bin'),
|
|
|
|
('./venv/Lib/site-packages/PyQt5/Qt/bin/ssleay32.dll', './PyQt5/Qt/bin')
|
|
|
|
])
|
2018-01-14 07:41:27 -08:00
|
|
|
|
|
|
|
a = Analysis(['comictagger.py'],
|
2018-09-19 13:05:39 -07:00
|
|
|
binaries=binaries,
|
2018-01-14 07:41:27 -08:00
|
|
|
datas=[('comictaggerlib/ui/*.ui', 'ui'), ('comictaggerlib/graphics', 'graphics')],
|
|
|
|
hiddenimports=['PIL'],
|
|
|
|
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,
|
|
|
|
a.binaries,
|
|
|
|
a.zipfiles,
|
|
|
|
a.datas,
|
|
|
|
# single file setup
|
|
|
|
exclude_binaries=False,
|
|
|
|
name='comictagger',
|
|
|
|
debug=False,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
console=False,
|
|
|
|
icon="windows/app.ico" )
|
|
|
|
|
|
|
|
app = BUNDLE(exe,
|
|
|
|
name='ComicTagger.app',
|
|
|
|
icon='mac/app.icns',
|
|
|
|
info_plist={
|
|
|
|
'NSHighResolutionCapable': 'True'
|
|
|
|
},
|
|
|
|
bundle_identifier=None)
|