17 lines
414 B
Bash
17 lines
414 B
Bash
#!/bin/sh
|
|||
|
|
set -eu
|
||
|
|
mac=$(cd "$(dirname "$0")" && pwd)
|
||
|
|
|
||
|
|
"$mac/package.sh"
|
||
|
|
version=$(plutil -extract CFBundleShortVersionString raw "$mac/.build/Byre.app/Contents/Info.plist")
|
||
|
|
dmg=$mac/.build/release/$version/byre-$version.dmg
|
||
|
|
"$mac/install.sh" "$dmg"
|
||
|
|
if pgrep -xq Byre; then
|
||
|
|
pkill -x Byre
|
||
|
|
while pgrep -xq Byre; do
|
||
|
|
sleep 0.2
|
||
|
|
done
|
||
|
|
open /Applications/Byre.app
|
||
|
|
fi
|
||
|
|
launchctl kickstart -k "gui/$(id -u)/run.fc.byre"
|