mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-26 05:16:29 +08:00
Deregister Livebook.app from LaunchServices when testing locally
This commit is contained in:
parent
0b45e3d5a1
commit
a9cd075abc
1 changed files with 10 additions and 1 deletions
|
|
@ -2,4 +2,13 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
. `dirname $0`/build_app.sh
|
. `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"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue