From c6f5f0c89f4c291e157ac27923785cd7c5791629 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 24 Sep 2026 09:25:37 +0530 Subject: [PATCH] use diskutil instead of hdiutil in update-on-ox as the latter is deprecated in macOS 27. Sigh. --- update-on-ox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-on-ox b/update-on-ox index 7c44a4997..f09ff88dc 100755 --- a/update-on-ox +++ b/update-on-ox @@ -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