mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-14 10:49:07 +02:00
## Describe your changes The UI shells out to xdg-open to launch the external browser for the SSO verification page, which the embedded webview cannot open inline, and to reveal the debug bundle in the file manager. client/ui/build/linux/nfpm/nfpm.yaml lists xdg-utils for every package format, but the released packages are built from the goreleaser configs, where it was missing: the GTK and WebKitGTK dependencies carried over and xdg-utils did not. Add it to all four nfpm dependency lists. ## Issue ticket number and link <!-- Required for anything that changes behavior. Link the issue (or the validated discussion it came from) that the NetBird team already agreed on. See https://github.com/netbirdio/netbird/blob/main/CONTRIBUTING.md#ticket-first-pr-second --> ## Stack <!-- branch-stack --> ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] I ran and tested this change locally — I did not rely on CI to find out whether it works - [ ] This PR has a single purpose (not a fix + refactor + feature in one) - [ ] This change is a trivial fix, **OR** it links an issue the NetBird team agreed on beforehand. Changes to the public API, gRPC protocols, functionality behavior, CLI / service flags, or new features always need that agreement first. See [CONTRIBUTING.md](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTING.md#ticket-first-pr-second). > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Added required desktop integration support to Debian and RPM packages. * Ensured GTK3 packages include the same runtime support for opening links and files through the system. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
147 lines
4.2 KiB
YAML
147 lines
4.2 KiB
YAML
version: 2
|
|
env:
|
|
- SKIP_PUBLISH={{ if index .Env "SKIP_PUBLISH" }}{{ .Env.SKIP_PUBLISH }}{{ else }}true{{ end }}
|
|
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
|
|
dir: client/ui
|
|
binary: netbird-ui
|
|
env:
|
|
- CGO_ENABLED=1
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
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 }}"
|
|
tags:
|
|
- production
|
|
|
|
- id: netbird-ui-windows-amd64
|
|
dir: client/ui
|
|
binary: netbird-ui
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=x86_64-w64-mingw32-gcc
|
|
goos:
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
ldflags:
|
|
- -s -w -X github.com/netbirdio/netbird/version.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser
|
|
- -H windowsgui
|
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
|
tags:
|
|
- production
|
|
|
|
- id: netbird-ui-windows-arm64
|
|
dir: client/ui
|
|
binary: netbird-ui
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CC=aarch64-w64-mingw32-clang
|
|
- CXX=aarch64-w64-mingw32-clang++
|
|
goos:
|
|
- windows
|
|
goarch:
|
|
- arm64
|
|
ldflags:
|
|
- -s -w -X github.com/netbirdio/netbird/version.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser
|
|
- -H windowsgui
|
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
|
tags:
|
|
- production
|
|
|
|
archives:
|
|
- id: linux-arch
|
|
name_template: "{{ .ProjectName }}-linux_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
builds:
|
|
- netbird-ui
|
|
- id: windows-arch
|
|
name_template: "{{ .ProjectName }}-windows_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
builds:
|
|
- netbird-ui-windows-amd64
|
|
- netbird-ui-windows-arm64
|
|
|
|
nfpms:
|
|
- maintainer: Netbird <dev@netbird.io>
|
|
description: Netbird client UI.
|
|
homepage: https://netbird.io/
|
|
license: BSD-3-Clause
|
|
vendor: NetBird
|
|
id: netbird_ui_deb
|
|
package_name: netbird-ui
|
|
builds:
|
|
- netbird-ui
|
|
formats:
|
|
- deb
|
|
scripts:
|
|
postinstall: "release_files/ui-post-install.sh"
|
|
contents:
|
|
- src: client/ui/build/linux/netbird.desktop
|
|
dst: /usr/share/applications/org.wails.netbird.desktop
|
|
- src: client/ui/build/appicon.png
|
|
dst: /usr/share/pixmaps/netbird.png
|
|
dependencies:
|
|
- netbird (>= 0.75.0)
|
|
- libgtk-4-1 (>= 4.14)
|
|
- libwebkitgtk-6.0-4
|
|
- xdg-utils
|
|
|
|
- maintainer: Netbird <dev@netbird.io>
|
|
description: Netbird client UI.
|
|
homepage: https://netbird.io/
|
|
license: BSD-3-Clause
|
|
vendor: NetBird
|
|
id: netbird_ui_rpm
|
|
package_name: netbird-ui
|
|
builds:
|
|
- netbird-ui
|
|
formats:
|
|
- rpm
|
|
scripts:
|
|
postinstall: "release_files/ui-post-install.sh"
|
|
contents:
|
|
- src: client/ui/build/linux/netbird.desktop
|
|
dst: /usr/share/applications/org.wails.netbird.desktop
|
|
- src: client/ui/build/appicon.png
|
|
dst: /usr/share/pixmaps/netbird.png
|
|
dependencies:
|
|
- netbird >= 0.75.0
|
|
- (gtk4 >= 4.14 or libgtk-4-1 >= 4.14)
|
|
- (webkitgtk6.0 or libwebkitgtk-6_0-4)
|
|
- xdg-utils
|
|
|
|
rpm:
|
|
signature:
|
|
key_file: '{{ if index .Env "GPG_RPM_KEY_FILE" }}{{ .Env.GPG_RPM_KEY_FILE }}{{ end }}'
|
|
|
|
uploads:
|
|
- name: debian
|
|
skip: "{{ .Env.SKIP_PUBLISH }}"
|
|
ids:
|
|
- netbird_ui_deb
|
|
mode: archive
|
|
target: https://pkgs.wiretrustee.com/debian/pool/{{ .ArtifactName }};deb.distribution=stable;deb.component=main;deb.architecture={{ if .Arm }}armhf{{ else }}{{ .Arch }}{{ end }};deb.package=
|
|
username: dev@wiretrustee.com
|
|
method: PUT
|
|
|
|
- name: yum
|
|
skip: "{{ .Env.SKIP_PUBLISH }}"
|
|
ids:
|
|
- netbird_ui_rpm
|
|
mode: archive
|
|
target: https://pkgs.wiretrustee.com/yum/{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}
|
|
username: dev@wiretrustee.com
|
|
method: PUT
|