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
|
2022-05-20 00:19:33 -07:00
|
|
|
from PyInstaller.utils.hooks import get_module_file_attribute
|
2018-09-19 13:05:39 -07:00
|
|
|
|
2019-10-06 05:15:18 -07:00
|
|
|
enable_console = False
|
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-10-06 05:15:18 -07:00
|
|
|
enable_console = True
|
2018-01-14 07:41:27 -08:00
|
|
|
|
|
|
|
a = Analysis(['comictagger.py'],
|
2018-09-19 13:05:39 -07:00
|
|
|
binaries=binaries,
|
2022-05-20 00:19:33 -07:00
|
|
|
datas=[('comictaggerlib/ui/*.ui', 'ui'), ('comictaggerlib/graphics', 'graphics'), ('comicapi/data', 'comicapi/data'),(os.path.join(os.path.dirname(get_module_file_attribute('wordninja')),"wordninja"), "wordninja")],
|
2018-01-14 07:41:27 -08:00
|
|
|
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-06 05:15:18 -07:00
|
|
|
console=enable_console,
|
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
|
|
|
},
|
2021-09-21 21:26:18 -07:00
|
|
|
bundle_identifier=None)
|