Files
byre/mac/deploy.sh
T
2026-10-18 16:14:03 -07:00

17 lines
414 B
Bash
Executable File

#!/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"