From ef8b268d53a8a0dfa7fc26999e43d17e0c93c351 Mon Sep 17 00:00:00 2001 From: Suhas Karanth Date: Sun, 14 Nov 2021 16:39:42 +0530 Subject: [PATCH] Universal binaries for macOS (#159) A special format that contains both arm64 and amd64 executables in a single file --- .goreleaser.yml | 2 ++ releasing.md | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index f0d7e09..c67f357 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,6 +20,8 @@ archives: windows: Windows 386: i386 amd64: x86_64 +universal_binaries: + - replace: false checksum: name_template: 'checksums.txt' snapshot: diff --git a/releasing.md b/releasing.md index 8943476..d81081c 100644 --- a/releasing.md +++ b/releasing.md @@ -26,3 +26,11 @@ Then: ```bash GITHUB_TOKEN=xxx goreleaser --rm-dist ``` + +## Testing + +To test and verify changes to Go Releaser config, use the following: + +```bash +goreleaser --snapshot --skip-publish --rm-dist +```