docs: make tray icons reproducible

This commit is contained in:
mirivlad 2026-07-14 02:31:12 +08:00
parent 4d6a8bd8cd
commit 55edaa0209
2 changed files with 5 additions and 5 deletions

View File

@ -231,7 +231,7 @@ Expected: absent packages/methods.
- [ ] **Step 3: Implement adapter and Wails wiring** - [ ] **Step 3: Implement adapter and Wails wiring**
Add `github.com/getlantern/systray@v1.2.2`. The production adapter calls nonblocking `systray.Register`, sets an embedded existing icon, and starts goroutines for the two click channels. `main.go` embeds `build/windows/icon.ico` and `build/appicon.png`, registers `OnBeforeClose`, and uses `options.SingleInstanceLock` whose second launch calls `app.ShowWindow`. Add `github.com/getlantern/systray@v1.2.2`. The production adapter calls nonblocking `systray.Register`, sets compact source-controlled PNG bytes derived from the existing tracked logo, and starts goroutines for the two click channels. `main.go` registers `OnBeforeClose` and uses `options.SingleInstanceLock` whose second launch calls `app.ShowWindow`. Do not embed ignored Wails-generated files from `build/`.
- [ ] **Step 4: Verify and commit** - [ ] **Step 4: Verify and commit**
@ -339,4 +339,3 @@ gh release view v0.1.0-alpha.2 -R mirivlad/verstak
``` ```
The final report distinguishes automated verification from the two required real desktop manual checks: tray close/show/quit and a near-future Todo notification while the window is hidden. The final report distinguishes automated verification from the two required real desktop manual checks: tray close/show/quit and a near-future Todo notification while the window is hidden.

View File

@ -36,9 +36,10 @@ of creating a second process.
The implementation uses `github.com/getlantern/systray` through a small The implementation uses `github.com/getlantern/systray` through a small
`internal/shell/tray` adapter. It uses `Register`, rather than its blocking `internal/shell/tray` adapter. It uses `Register`, rather than its blocking
`Run`, so Wails remains the owner of the GUI event loop. The current project `Run`, so Wails remains the owner of the GUI event loop. A compact PNG derived
icon is embedded in the executable; Windows receives the existing `.ico`, and from the tracked project logo is encoded in the tray package, so a clean build
Linux receives the existing PNG. does not depend on ignored Wails-generated icon files. The library accepts PNG
icon bytes on both target platforms.
## Notification capability and permission ## Notification capability and permission