Commit d3272d1
authored
build(release): build darwin with cgo on macOS so releases ship the tray (#95)
The release cross-compiled darwin with CGO_ENABLED=0, so the prebuilt
(and Homebrew) binaries had the menu bar and the sqlite backend stubbed
out — `tock tray` reported "needs a CGO-enabled build".
Run goreleaser on a macOS runner and override the darwin targets to
CGO_ENABLED=1 so fyne.io/systray (Objective-C) and go-sqlite3 are compiled
in. Linux stays CGO-free (pure-Go cross-build from the same runner).
Verified locally: goreleaser builds darwin/arm64 and darwin/amd64 with cgo
(cross-arch amd64 links fine from an arm64 host), and the resulting binary
carries the systray symbols instead of the no-cgo stub.1 parent 150f2f2 commit d3272d1
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
23 | 35 | | |
24 | 36 | | |
25 | 37 | | |
| |||
0 commit comments