From 04ec2c5614cfe7152b4886f0e105840d2f5797c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Mon, 3 Aug 2026 20:09:17 +0200 Subject: [PATCH] [client] Build the wails3 CLI with the gtk3 tag on the legacy UI job --- .github/workflows/release.yml | 5 ++++- .goreleaser_ui_gtk3.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e6d1abd8..dfe677039 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -555,9 +555,12 @@ jobs: - name: Install wails3 CLI # Version derived from go.mod so the binding generator always matches # the wails runtime the binary links against. + # -tags gtk3: the CLI links the wails runtime's cgo packages, and the + # default tags request gtk4/webkitgtk-6.0 pkg-config entries that do + # not exist on ubuntu-22.04. run: | WAILS_VERSION=$(go list -m -f '{{.Version}}' github.com/wailsapp/wails/v3) - go install github.com/wailsapp/wails/v3/cmd/wails3@$WAILS_VERSION + go install -tags gtk3 github.com/wailsapp/wails/v3/cmd/wails3@$WAILS_VERSION - name: Run GoReleaser uses: goreleaser/goreleaser-action@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89 # v7.2.2 diff --git a/.goreleaser_ui_gtk3.yaml b/.goreleaser_ui_gtk3.yaml index 516d6f800..2c62f0d25 100644 --- a/.goreleaser_ui_gtk3.yaml +++ b/.goreleaser_ui_gtk3.yaml @@ -8,7 +8,10 @@ before: # 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' + # -f '-tags gtk3': the generator type-checks client/ui, whose cgo imports + # would otherwise resolve gtk4/webkitgtk-6.0 pkg-config entries that do + # not exist on ubuntu-22.04. + - sh -c 'cd client/ui && wails3 generate bindings -clean=true -ts -f "-tags gtk3"' - sh -c 'cd client/ui/frontend && pnpm install --frozen-lockfile && pnpm build' builds: