mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont internet enable dmg images as this functionality is deprecated by Apple and not used since 10.7. The internet-enable verb was also removed from hdiutil in Catalina (10.15)
This commit is contained in:
parent
1fa94ec5c2
commit
d8d1d890ea
@ -747,7 +747,7 @@ class Freeze(object):
|
||||
'lib', 'python' + py_ver))
|
||||
|
||||
@flush
|
||||
def makedmg(self, d, volname, internet_enable=True):
|
||||
def makedmg(self, d, volname):
|
||||
''' Copy a directory d into a dmg named volname '''
|
||||
print('\nSigning...')
|
||||
sys.stdout.flush()
|
||||
@ -780,8 +780,6 @@ class Freeze(object):
|
||||
print('\nCreating dmg...')
|
||||
with timeit() as times:
|
||||
subprocess.check_call(cmd + [dmg])
|
||||
if internet_enable:
|
||||
subprocess.check_call(['/usr/bin/hdiutil', 'internet-enable', '-yes', dmg])
|
||||
print('dmg created in %d minutes and %d seconds' % tuple(times))
|
||||
shutil.rmtree(tdir)
|
||||
size = os.stat(dmg).st_size / (1024 * 1024.)
|
||||
|
Loading…
x
Reference in New Issue
Block a user