mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-10 06:01:44 +08:00
14 lines
482 B
Bash
Executable file
14 lines
482 B
Bash
Executable file
#!/bin/sh
|
|
set -euo pipefail
|
|
|
|
. `dirname $0`/build_app.sh
|
|
|
|
# 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"
|