From d8d1d890eaf21a3164f639babd2f4d5a69bac24c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 1 May 2021 14:54:34 +0530 Subject: [PATCH] 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) --- bypy/macos/__main__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bypy/macos/__main__.py b/bypy/macos/__main__.py index 45ccae7aae..74231e6a87 100644 --- a/bypy/macos/__main__.py +++ b/bypy/macos/__main__.py @@ -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.)