Repository navigation
Add bpm-tray: macOS menu bar app - #7
Merged
Merged
Conversation
New cmd/bpm-tray binary: a menu bar icon (fyne.io/systray) instead of a terminal command. Auto-discovers your real Bambu Studio filament/process/machine directories under ~/Library/Application Support/BambuStudio (picks the first non-default account-ID folder that has the relevant subdirectory) - no flags needed. DB and backups live under ~/Library/Application Support/bpm, since a menu bar app has no fixed working directory to default a relative bpm.db against. Menu: Open bpm (launches the browser), status line, Quit. Exported webui.LogoPNG (was unexported logoPNG) so the tray icon reuses the same embedded asset instead of duplicating it - go:embed can't reach outside its own package's directory tree. Needs cgo (Cocoa bridging via fyne.io/systray), so it can't build on the existing CGO_ENABLED=0 cross-compiling release job - added a second release.yml job on macos-latest that builds it for both architectures and attaches the tarballs to the same release goreleaser already created. Verified locally: built for the current arch and cross-compiled CGO_ENABLED=1 GOARCH=arm64 from an amd64 host, ran it, confirmed both /copy and /copy/process wire up correctly against real Bambu Studio directories, and the embedded HTTP server responds on :8080 within a couple seconds of the process starting. New Makefile target: make tray. README documents it as a fourth install option.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cmd/bpm-traybinary: a menu bar icon instead of a terminal command, usingfyne.io/systray.~/Library/Application Support/BambuStudio— no flags needed.~/Library/Application Support/bpm.webui.LogoPNGso the tray reuses the same embedded icon (go:embed can't reach outside its own package).macos-latestjob to release.yml that builds it separately and attaches to the release goreleaser already created.make traytarget; README documents it as a fourth install option.Test plan
go build ./...,go vet ./...,go test ./...all passdocker compose buildstill succeeds (bpm's build is unaffected by the new cgo-only dependency)/copyand/copy/processboth wired correctlyCGO_ENABLED=1 GOARCH=arm64from an amd64 host successfully