2018-01-14 07:41:27 -08:00
|
|
|
# -*- mode: python -*-
|
|
|
|
|
2018-09-19 13:05:39 -07:00
|
|
|
import platform
|
2019-10-05 14:59:52 -07:00
|
|
|
from os.path import join
|
2019-09-29 14:11:42 -07:00
|
|
|
from comictaggerlib import ctversion
|
2018-09-19 13:05:39 -07:00
|
|
|
|
2019-10-05 14:59:52 -07:00
|
|
|
binaries = []
|
2018-01-14 07:41:27 -08:00
|
|
|
block_cipher = None
|
|
|
|
|
2018-09-19 13:05:39 -07:00
|
|
|
if platform.system() == "Windows":
|
2019-09-28 08:01:05 -07:00
|
|
|
from site import getsitepackages
|
|
|
|
sitepackages = getsitepackages()[1]
|
2018-09-19 13:05:39 -07:00
|
|
|
# add ssl qt libraries not discovered automatically
|
|
|
|
binaries.extend([
|
2019-10-05 14:59:52 -07:00
|
|
|
(join(sitepackages, "PyQt5/Qt/bin/libeay32.dll"), "./PyQt5/Qt/bin"),
|
|
|
|
(join(sitepackages, "PyQt5/Qt/bin/ssleay32.dll"), "./PyQt5/Qt/bin")
|
2018-09-19 13:05:39 -07:00
|
|
|
])
|
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,
|
2019-10-05 14:55:34 -07:00
|
|
|
console=True,
|
2018-01-14 07:41:27 -08:00
|
|
|
icon="windows/app.ico" )
|
|
|
|
|
|
|
|
app = BUNDLE(exe,
|
|
|
|
name='ComicTagger.app',
|
|
|
|
icon='mac/app.icns',
|
|
|
|
info_plist={
|
2019-09-29 14:11:42 -07:00
|
|
|
'NSHighResolutionCapable': 'True',
|
2019-10-05 14:53:56 -07:00
|
|
|
'NSRequiresAquaSystemAppearance': 'False',
|
2019-09-29 14:11:42 -07:00
|
|
|
'CFBundleDisplayName': 'ComicTagger',
|
|
|
|
'CFBundleShortVersionString': ctversion.version,
|
|
|
|
'CFBundleVersion': ctversion.version
|
2018-01-14 07:41:27 -08:00
|
|
|
},
|
|
|
|
bundle_identifier=None)
|