mirror of
https://github.com/ckb-next/ckb-next.git
synced 2026-10-10 12:27:21 -04:00
macOS: fix the app not showing up after quickinstall
This commit is contained in:
+5
-2
@@ -260,8 +260,11 @@ sleep 1
|
||||
echo ""
|
||||
read -rp "Start ckb now [Y/n]? " dolaunch
|
||||
[[ $dolaunch =~ no? ]] && exit 0
|
||||
APP="$PREFIX"/bin/ckb
|
||||
[[ "$OSTYPE" == "darwin"* ]] && APP="$APP".app/Contents/MacOS/ckb
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
APP="$PREFIX"/ckb.app/Contents/MacOS/ckb
|
||||
else
|
||||
APP="$PREFIX"/bin/ckb
|
||||
fi
|
||||
# Ask ckb to close if there's an instance already running
|
||||
"$APP" --close >/dev/null 2>&1
|
||||
sleep 1
|
||||
|
||||
Reference in New Issue
Block a user