From cee95461d15fac87ba01ddb63f0715099e985d4f Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Tue, 15 Oct 2024 15:03:17 +0200 Subject: [PATCH] [client] Add universal bin build and update sign workflow version (#2738) * Add universal binaries build for macOS * update sign pipeline version * handle info.plist in sign workflow --- .github/workflows/release.yml | 4 ++-- .goreleaser.yaml | 3 +++ .goreleaser_ui_darwin.yaml | 3 +++ client/ui/Info.plist | 12 ------------ 4 files changed, 8 insertions(+), 14 deletions(-) delete mode 100644 client/ui/Info.plist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2e2437e6..1b85ec7ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ on: pull_request: env: - SIGN_PIPE_VER: "v0.0.14" + SIGN_PIPE_VER: "v0.0.15" GORELEASER_VER: "v2.3.2" PRODUCT_NAME: "NetBird" COPYRIGHT: "Wiretrustee UG (haftungsbeschreankt)" @@ -223,4 +223,4 @@ jobs: repo: netbirdio/sign-pipelines ref: ${{ env.SIGN_PIPE_VER }} token: ${{ secrets.SIGN_GITHUB_TOKEN }} - inputs: '{ "tag": "${{ github.ref }}" }' + inputs: '{ "tag": "${{ github.ref }}", "skipRelease": false }' diff --git a/.goreleaser.yaml b/.goreleaser.yaml index cf2ce4f4f..e718b3fcd 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -96,6 +96,9 @@ builds: - -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 + archives: - builds: - netbird diff --git a/.goreleaser_ui_darwin.yaml b/.goreleaser_ui_darwin.yaml index bccb7f471..0a0082075 100644 --- a/.goreleaser_ui_darwin.yaml +++ b/.goreleaser_ui_darwin.yaml @@ -23,6 +23,9 @@ builds: tags: - load_wgnt_from_rsrc +universal_binaries: + - id: netbird-ui-darwin + archives: - builds: - netbird-ui-darwin diff --git a/client/ui/Info.plist b/client/ui/Info.plist deleted file mode 100644 index 8441110b9..000000000 --- a/client/ui/Info.plist +++ /dev/null @@ -1,12 +0,0 @@ - - - - - CFBundleExecutable - netbird-ui - CFBundleIconFile - Netbird - LSUIElement - 1 - -