From bc41de56680bb461960c284e92471a1b7119c524 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 7 Feb 2026 04:38:44 +0000 Subject: [PATCH] upd goreleaser config --- .goreleaser.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index c7b37cb..241c3d1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -40,10 +40,28 @@ builds: - amd64 archives: - - formats: ['tar.gz'] + - id: 'x32-cli-archive' + builds: ['x32-cli'] + formats: ['tar.gz'] # this name template makes the OS and Arch compatible with the results of `uname`. name_template: >- - {{ .ProjectName }}_ + x32-cli_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + # use zip for windows archives + format_overrides: + - goos: windows + formats: ['zip'] + + - id: 'xair-cli-archive' + builds: ['xair-cli'] + formats: ['tar.gz'] + # this name template makes the OS and Arch compatible with the results of `uname`. + name_template: >- + xair-cli_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386