mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +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
|
# 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
|
# The deployment target is picked up by the Python build tools automatically
|
||||||
PYTHON_VERSION: 3.11.9
|
PYTHON_VERSION: 3.11.9
|
||||||
MACOSX_DEPLOYMENT_TARGET: '10.13'
|
MACOSX_DEPLOYMENT_TARGET: '10.14'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- name: Get Python
|
- name: Get Python
|
||||||
|
|||||||
5
setup.py
5
setup.py
@@ -38,8 +38,9 @@ class BuildBinaryCommand(setuptools.Command):
|
|||||||
if sys.platform == 'darwin':
|
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')
|
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
|
# 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':
|
MACOS = os.getenv('MACOSX_DEPLOYMENT_TARGET')
|
||||||
os.system(f'appdmg kcc.json dist/kcc_osx_10_13_legacy_{VERSION}.dmg')
|
if MACOS:
|
||||||
|
os.system(f'appdmg kcc.json dist/kcc_osx_{MACOS.replace(".", "_")}_legacy_{VERSION}.dmg')
|
||||||
else:
|
else:
|
||||||
os.system(f'appdmg kcc.json dist/kcc_macos_{platform.processor()}_{VERSION}.dmg')
|
os.system(f'appdmg kcc.json dist/kcc_macos_{platform.processor()}_{VERSION}.dmg')
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user