mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-20 23:59:55 +00:00
The release_ui_darwin job builds the macOS UI bundle from
.goreleaser_ui_darwin.yaml, but cccb0e92 only added the wails3 CLI
install + bindings-regen hook to the Linux side (release.yml release_ui
job and .goreleaser_ui.yaml). The darwin counterpart still ran pnpm
build against the gitignored, empty bindings/ directory and failed with
~40 TS2307 "Cannot find module '@bindings/...'" errors.
Mirror the Linux setup on darwin: install wails3 from the version
pinned in go.mod, and run `wails3 generate bindings -clean=true -ts`
as the first goreleaser before-hook so vite can resolve @bindings/* by
the time pnpm build starts.
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
version: 2
|
|
|
|
project_name: netbird-ui
|
|
|
|
before:
|
|
hooks:
|
|
# Bindings are gitignored; regenerate before the frontend build so
|
|
# the @wailsio/runtime Vite plugin can resolve them (vite refuses to
|
|
# build without them).
|
|
- sh -c 'cd client/ui && wails3 generate bindings -clean=true -ts'
|
|
- sh -c 'cd client/ui/frontend && pnpm install --frozen-lockfile && pnpm build'
|
|
|
|
builds:
|
|
- id: netbird-ui-darwin
|
|
dir: client/ui
|
|
binary: netbird-ui
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- MACOSX_DEPLOYMENT_TARGET=11.0
|
|
- MACOS_DEPLOYMENT_TARGET=11.0
|
|
goos:
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
gomips:
|
|
- hardfloat
|
|
- softfloat
|
|
ldflags:
|
|
- -s -w -X github.com/netbirdio/netbird/version.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser
|
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
|
|
|
universal_binaries:
|
|
- id: netbird-ui-darwin
|
|
|
|
archives:
|
|
- builds:
|
|
- netbird-ui-darwin
|
|
|
|
checksum:
|
|
name_template: "{{ .ProjectName }}_darwin_checksums.txt"
|
|
changelog:
|
|
disable: true
|