Better error message for macOS ext_dev

This commit is contained in:
Kovid Goyal 2020-11-18 14:28:38 +05:30
parent 3125ae8339
commit 2c75e769be
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -230,6 +230,7 @@ class ExtDev(Command):
path = '/cygdrive/c/Program Files/Calibre2/app/bin/{}.pyd' path = '/cygdrive/c/Program Files/Calibre2/app/bin/{}.pyd'
bin_dir = '/cygdrive/c/Program Files/Calibre2' bin_dir = '/cygdrive/c/Program Files/Calibre2'
elif which == 'macos': elif which == 'macos':
raise SystemExit("This does not work on macOS because of Apple's stupid code-signing")
host = 'ox' host = 'ox'
path = '/Applications/calibre.app/Contents/Frameworks/plugins/{}.so' path = '/Applications/calibre.app/Contents/Frameworks/plugins/{}.so'
bin_dir = '/Applications/calibre.app/Contents/MacOS' bin_dir = '/Applications/calibre.app/Contents/MacOS'