mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-12 00:38:37 +00:00
use diskutil instead of hdiutil in update-on-ox as the latter is deprecated in macOS 27. Sigh.
This commit is contained in:
parent
5f736a4287
commit
c6f5f0c89f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue