diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c7424bfe..7c164000e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -463,6 +463,12 @@ jobs: uses: pnpm/action-setup@v3 with: version: 9 + - name: Install wails3 CLI + # Version derived from go.mod so the binding generator always matches + # the wails runtime the binary links against. + run: | + WAILS_VERSION=$(go list -m -f '{{.Version}}' github.com/wailsapp/wails/v3) + go install github.com/wailsapp/wails/v3/cmd/wails3@$WAILS_VERSION - name: Run GoReleaser id: goreleaser uses: goreleaser/goreleaser-action@v4 diff --git a/.goreleaser_ui_darwin.yaml b/.goreleaser_ui_darwin.yaml index 441269aa8..96e15371a 100644 --- a/.goreleaser_ui_darwin.yaml +++ b/.goreleaser_ui_darwin.yaml @@ -4,6 +4,10 @@ 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: