1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-12 17:26:23 +00:00

Update setup.py

This commit is contained in:
Alex Xu
2025-08-21 21:51:56 -07:00
committed by GitHub
parent 18f02df3a1
commit 96a92fb9bb

View File

@@ -38,9 +38,9 @@ class BuildBinaryCommand(setuptools.Command):
if sys.platform == 'darwin':
os.system('pyinstaller --hidden-import=_cffi_backend -y -D -i icons/comic2ebook.icns -n "Kindle Comic Converter" -w -s kcc.py')
# TODO /usr/bin/codesign --force -s "$MACOS_CERTIFICATE_NAME" --options runtime dist/Applications/Kindle\ Comic\ Converter.app -v
MACOS = os.getenv('MACOSX_DEPLOYMENT_TARGET')
if MACOS:
os.system(f'appdmg kcc.json dist/kcc_osx_{MACOS.replace(".", "_")}_legacy_{VERSION}.dmg')
min_os = os.getenv('MACOSX_DEPLOYMENT_TARGET')
if min_os:
os.system(f'appdmg kcc.json dist/kcc_osx_{min_os.replace(".", "_")}_legacy_{VERSION}.dmg')
else:
os.system(f'appdmg kcc.json dist/kcc_macos_{platform.processor()}_{VERSION}.dmg')
sys.exit(0)