From 5af2d3e8d735aa787d3dca3e1a696b3019458d6c Mon Sep 17 00:00:00 2001 From: Jaroslav Holub Date: Mon, 7 Mar 2022 15:54:49 +0700 Subject: [PATCH] fixing goreleaser gon integration (17) --- .goreleaser.yaml | 15 ++++++++++++--- gon.amd64.json | 4 ++-- gon.arm64.json | 4 ++-- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 969f884..8806d0f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,16 +9,25 @@ builds: # - 386 # - amd64 # - arm64 - - id: binocs-macos + - id: binocs-macos-amd64 + binary: binocs + goos: + - darwin + goarch: + - amd64 + hooks: + post: + - cmd: 'gon -log-level=debug -log-json gon.amd64.json' + output: true + - id: binocs-macos-arm64 binary: binocs goos: - darwin goarch: - # - amd64 - arm64 hooks: post: - - cmd: 'gon -log-level=debug -log-json gon.{{ .Arch }}.json' + - cmd: 'gon -log-level=debug -log-json gon.arm64.json' output: true archives: - format: binary diff --git a/gon.amd64.json b/gon.amd64.json index 9faaf00..dd654a1 100644 --- a/gon.amd64.json +++ b/gon.amd64.json @@ -1,6 +1,6 @@ { "source": [ - "./dist/binocs-macos_darwin_amd64/binocs" + "./dist/binocs-macos-amd64_darwin_amd64/binocs" ], "bundle_id": "sh.binocs.macos", "apple_id": { @@ -11,6 +11,6 @@ "application_identity" : "586F6651E48ABDA71C8F6E1BD195E65377C337C6" }, "zip": { - "output_path": "./dist/binocs-macos_darwin_amd64/binocs.zip" + "output_path": "./dist/binocs-macos-amd64_darwin_amd64/binocs.zip" } } \ No newline at end of file diff --git a/gon.arm64.json b/gon.arm64.json index 9814b0d..464b60a 100644 --- a/gon.arm64.json +++ b/gon.arm64.json @@ -1,6 +1,6 @@ { "source": [ - "./dist/binocs-macos_darwin_arm64/binocs" + "./dist/binocs-macos-arm64_darwin_arm64/binocs" ], "bundle_id": "sh.binocs.macos", "apple_id": { @@ -11,6 +11,6 @@ "application_identity" : "586F6651E48ABDA71C8F6E1BD195E65377C337C6" }, "zip": { - "output_path": "./dist/binocs-macos_darwin_arm64/binocs.zip" + "output_path": "./dist/binocs-macos-arm64_darwin_arm64/binocs.zip" } } \ No newline at end of file