Deregister Livebook.app from LaunchServices when testing locally

This commit is contained in:
Wojtek Mach 2025-02-12 00:50:49 +01:00
parent 0b45e3d5a1
commit a9cd075abc

View file

@ -2,4 +2,13 @@
set -euo pipefail
. `dirname $0`/build_app.sh
open -W --stdout `tty` --stderr `tty` $app_dir
# Deregister /Applications/Livebook.app so that the "dev version" will handle .livemd and livebook://
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister \
-u /Applications/Livebook.app \
|| true
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister \
"$app_dir"
open -W --stdout `tty` --stderr `tty` "$app_dir"