mirror of
https://github.com/hanzoai/dev-desktop.git
synced 2026-11-22 00:14:30 +00:00
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]>
17 lines
593 B
Bash
Executable File
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"
|