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:
2
.github/workflows/package-osx-legacy.yml
vendored
2
.github/workflows/package-osx-legacy.yml
vendored
@@ -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
|
||||
|
||||
5
setup.py
5
setup.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user