Skip to content

feat(zbugs): app icons with framework badges, and app bundles for the Rust apps - #182

Merged
tmm merged 1 commit into
mainfrom
feat/zbugs-app-icons
Nov 12, 2026
Merged

tmm merged 1 commit into
mainfrom
feat/zbugs-app-icons

Conversation

@tmm

@tmm tmm commented Nov 12, 2026

Copy link
Copy Markdown
Member

zbugs-gpui and zbugs-rune ran as bare executables, so macOS showed them in the Dock and Finder as the generic black "exec" icon. This gives all three zbugs apps the same Icon Composer icon (zbugs-swift's Zero logo) with the language's or framework's logo as a badge in the bottom-right corner, and runs the two Rust apps as real .app bundles.

  • Icons: AppIcon.icon in each app. The Swift badge is Swift's logo (squircle and bird) from swift.org's site repository. GPUI's is the mark from gpui.rs, white on black. Rune's is the pixel ᚱ from Rune's repository (MIT), blue on black as on Rune's own icon.
  • Bundles: on macOS, cargo run in apps/zbugs-gpui or apps/zbugs-rune now goes through bundle.sh (Cargo's runner, set in .cargo/config.toml for macOS only). The script makes ZBugs GPUI.app / ZBugs Rune.app beside the executable, with the icon compiled by actool, and runs the app from inside it. Environment variables, arguments, and terminal output work as before, and the bundle stays so it can be opened from Finder. Test binaries and Linux are unaffected.
  • bundle.sh re-registers the bundle with LaunchServices before launching. Without that, the first launch of a fresh bundle showed a "can't open" overlay in the Dock (reproduced, then fixed).

Checked on macOS 26.3 with Xcode 26.1.1: cargo test in both apps, Rune's headless cargo run -- --snap (through the bundle), the Swift app's xcodebuild build, and launching each bundle by cargo run and by open. Before-and-after Dock and Finder screenshots are in the Amp thread.

Swift's and GPUI's logos are their owners' trademarks. Apple's Swift logo guidelines cover course materials and technical publications, not app icons. That's fine for these unpublished dev apps, but they should be swapped out before any distribution.

… Rust apps

zbugs-gpui and zbugs-rune ran as bare executables, so the Dock showed
the generic "exec" icon. On macOS, `cargo run` now runs each from inside
an app bundle (bundle.sh, Cargo's runner there) with an Icon Composer
icon compiled by actool: zbugs-swift's icon with GPUI's or Rune's logo
as a badge in the bottom-right corner. zbugs-swift's icon gets Swift's
logo the same way.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d0e5-95f4-73e5-8d5d-9db8bfed7733
Co-authored-by: tmm <tmm@tmm.dev>
@tmm
tmm merged commit df060c1 into main Nov 12, 2026
26 checks passed
@tmm
tmm deleted the feat/zbugs-app-icons branch November 12, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants