From 3e4b779d7b0854401fb9f148a44e7e76c6d03fe0 Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Thu, 26 May 2022 15:29:55 +0200 Subject: [PATCH] Added Netbird as dependency and renamed linux shortcut name (#330) --- .goreleaser.yaml | 2 ++ client/cmd/service.go | 7 ++++++- client/ui/netbird.desktop | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 16491ab6e33..0b7b83fae0f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -115,6 +115,7 @@ nfpms: - libayatana-appindicator3-1 - libgtk-3-dev - libappindicator3-dev + - netbird - maintainer: Netbird description: Netbird client UI. @@ -134,6 +135,7 @@ nfpms: - libayatana-appindicator3-1 - libgtk-3-dev - libappindicator3-dev + - netbird - maintainer: Netbird description: Netbird client. diff --git a/client/cmd/service.go b/client/cmd/service.go index 8745889db45..7a67298502b 100644 --- a/client/cmd/service.go +++ b/client/cmd/service.go @@ -2,6 +2,7 @@ package cmd import ( "context" + "runtime" "github.com/kardianos/service" log "github.com/sirupsen/logrus" @@ -23,8 +24,12 @@ func newProgram(ctx context.Context, cancel context.CancelFunc) *program { } func newSVCConfig() *service.Config { + name := "netbird" + if runtime.GOOS == "windows" { + name = "Netbird" + } return &service.Config{ - Name: "netbird", + Name: name, DisplayName: "Netbird", Description: "A WireGuard-based mesh network that connects your devices into a single private network.", } diff --git a/client/ui/netbird.desktop b/client/ui/netbird.desktop index a783056bee5..b3a1b92dcbe 100644 --- a/client/ui/netbird.desktop +++ b/client/ui/netbird.desktop @@ -1,5 +1,5 @@ [Desktop Entry] -Name=Netbird Agent +Name=Netbird Exec=/usr/bin/netbird-ui Icon=netbird Type=Application