mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Get extdev working on macOS
Iteration speed is too low otherwise
This commit is contained in:
parent
e7fe6142ba
commit
82ba1b89d0
@ -230,7 +230,10 @@ class ExtDev(Command):
|
||||
path = '/cygdrive/c/Program Files/Calibre2/app/bin/{}.pyd'
|
||||
bin_dir = '/cygdrive/c/Program Files/Calibre2'
|
||||
elif which == 'macos':
|
||||
raise SystemExit("This does not work on macOS because of Apple's stupid code-signing")
|
||||
print(
|
||||
"\n\n\x1b[33;1mWARNING: This does not work on macOS, unless you use un-signed builds with ",
|
||||
' ./update-on-ox develop\x1b[m',
|
||||
file=sys.stderr, end='\n\n\n')
|
||||
host = 'ox'
|
||||
path = '/Applications/calibre.app/Contents/Frameworks/plugins/{}.so'
|
||||
bin_dir = '/Applications/calibre.app/Contents/MacOS'
|
||||
|
@ -53,7 +53,11 @@ with open(__file__, 'rb') as f:
|
||||
script = script[:script.find('# EOF_REMOTE')].replace('if False:', 'if True:', 1)
|
||||
|
||||
with tempfile.NamedTemporaryFile(prefix='install-dmg-', suffix='.py') as f:
|
||||
run('./setup.py osx --dont-shutdown')
|
||||
cmd = './setup.py osx --dont-shutdown'
|
||||
if 'develop' in sys.argv:
|
||||
print('Disabling code-signing and notarization')
|
||||
cmd += ' --dont-sign --dont-notarize'
|
||||
run(cmd)
|
||||
f.write(script.encode('utf-8'))
|
||||
f.flush()
|
||||
run(f'scp dist/{dmg} {f.name} {HOST}:/tmp')
|
||||
|
Loading…
x
Reference in New Issue
Block a user