Files
zeekayandHanzo Dev a3b1de9a71 feat(desktop): native SwiftUI menu-bar item replaces the Tauri tray
A small SwiftUI helper (apps/desktop/menubar) draws the one menu-bar item:
the </> template glyph, per-account usage tiles with Hanzo's balance and plan
first, reset countdowns, quick actions, and limit notifications. It reads
/v1/usage from the local Dev server; the Tauri tray is deleted. A native
helper idles near 65 MB with no webview, against a hidden WKWebView popover.


Co-authored-by: Hanzo Dev <[email protected]>
2026-11-21 02:01:31 -08:00

17 lines
593 B
Bash
Executable File

#!/bin/sh
# Builds HanzoMenubar.app into the directory given as $1 (default .build/app).
set -eu
here=$(cd "$(dirname "$0")" && pwd)
out=${1:-$here/.build/app}
app="$out/HanzoMenubar.app"
cd "$here"
archs=${HANZO_MENUBAR_ARCHS:-"--arch arm64 --arch x86_64"}
swift build -c release $archs
rm -rf "$app"
mkdir -p "$app/Contents/MacOS" "$app/Contents/Resources"
cp "$(swift build -c release $archs --show-bin-path)/HanzoMenubar" "$app/Contents/MacOS/"
cp Fonts/*.ttf "$app/Contents/Resources/"
cp Info.plist "$app/Contents/"
codesign --force --sign "${HANZO_SIGN_IDENTITY:--}" "$app"
echo "$app"