use diskutil instead of hdiutil in update-on-ox as the latter is deprecated in macOS 27. Sigh.

This commit is contained in:
Kovid Goyal 2026-09-24 09:25:37 +05:30
parent 5f736a4287
commit c6f5f0c89f
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -15,7 +15,7 @@ if False:
dmg = sys.argv[-1]
mp = tempfile.mkdtemp()
atexit.register(os.rmdir, mp)
subprocess.check_call(f'hdiutil attach {dmg} -mountpoint {mp}'.split())
subprocess.check_call(f'diskutil image attach --mountPoint {mp} {dmg}'.split())
try:
os.chdir(mp)
for app in glob.glob('*.app'):
@ -25,7 +25,7 @@ if False:
subprocess.check_call(f'ditto -v {app} {d}'.split())
finally:
os.chdir('/')
subprocess.check_call(f'hdiutil detach {mp}'.split())
subprocess.check_call(f'diskutil eject {mp}'.split())
# EOF_REMOTE