#!/bin/sh # Install the built app into /Applications (quits any running copy, older builds included) and open it. set -e APP="$(cd "$(dirname "$0")/.." && pwd)/target/release/bundle/macos/Pixie.app" osascript -e 'quit app "Pixie"' >/dev/null 2>&1 || true pkill -f "Pixie.app/Contents/MacOS" >/dev/null 2>&1 || true sleep 1 rm -rf /Applications/Pixie.app ditto "$APP" /Applications/Pixie.app open /Applications/Pixie.app echo "Installed /Applications/Pixie.app"