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:
Kovid Goyal 2021-05-01 14:54:34 +05:30
parent 1fa94ec5c2
commit d8d1d890ea
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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.)