A Tauri 2 shell with one child webview per configured tool. Nav on the left with groups and a collapsible icon rail; links between configured apps switch tabs, everything else leaves for the real browser. Design spec in docs/superpowers/specs/2026-09-01-work-app-design.md.
33 lines
834 B
Bash
Executable File
33 lines
834 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Build, install to /Applications, relaunch.
|
|
#
|
|
# The standing workflow for seeing a change: this replaces the installed app
|
|
# rather than producing a disk image, because nothing here is being distributed.
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
APP="Work.app"
|
|
BUILT="src-tauri/target/release/bundle/macos/$APP"
|
|
DEST="/Applications/$APP"
|
|
|
|
echo "==> building"
|
|
npm run tauri build -- --bundles app
|
|
|
|
echo "==> quitting the running copy"
|
|
osascript -e 'quit app "Work"' >/dev/null 2>&1 || true
|
|
# A hung window would otherwise keep the bundle busy while it is replaced.
|
|
pkill -x Work >/dev/null 2>&1 || true
|
|
for _ in 1 2 3 4 5 6 7 8 9 10; do
|
|
pgrep -x Work >/dev/null || break
|
|
sleep 0.3
|
|
done
|
|
|
|
echo "==> installing to $DEST"
|
|
rm -rf "$DEST"
|
|
cp -R "$BUILT" "$DEST"
|
|
|
|
echo "==> launching"
|
|
open "$DEST"
|
|
echo "==> done"
|