1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-11 08:46:25 +00:00

minimum macos is 10.14 mojave (#1068)

This commit is contained in:
Alex Xu
2025-08-21 21:28:27 -07:00
committed by GitHub
parent 235db43fa6
commit 18f02df3a1
2 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ jobs:
# We need the official Python, because the GA ones only support newer macOS versions
# The deployment target is picked up by the Python build tools automatically
PYTHON_VERSION: 3.11.9
MACOSX_DEPLOYMENT_TARGET: '10.13'
MACOSX_DEPLOYMENT_TARGET: '10.14'
steps:
- uses: actions/checkout@v5
- name: Get Python

View File

@@ -38,8 +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
if os.getenv('MACOSX_DEPLOYMENT_TARGET') == '10.13':
os.system(f'appdmg kcc.json dist/kcc_osx_10_13_legacy_{VERSION}.dmg')
MACOS = os.getenv('MACOSX_DEPLOYMENT_TARGET')
if MACOS:
os.system(f'appdmg kcc.json dist/kcc_osx_{MACOS.replace(".", "_")}_legacy_{VERSION}.dmg')
else:
os.system(f'appdmg kcc.json dist/kcc_macos_{platform.processor()}_{VERSION}.dmg')
sys.exit(0)