From dc7761593da39b085e805c559be6854cae0cbd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=85=8E=E9=A5=BC=E6=9E=9C=E5=AD=90=E5=8D=B7=E9=B2=A8?= =?UTF-8?q?=E9=B1=BC=E8=BE=A3=E6=A4=92?= Date: Mon, 30 Dec 2024 19:32:49 +0800 Subject: [PATCH] chore: update GoReleaser configuration for improved binary naming and build settings - Modified binary naming template to include project name and version for better identification. - Enhanced architecture handling in the naming template to support additional architectures. - Added 'cursor-id-modifier' to the build settings for more specific build targeting. - Allowed different binary counts in the release process, improving flexibility in output. --- .goreleaser.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 561e6b5..13c0b21 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -38,17 +38,17 @@ archives: - id: binary format: binary name_template: >- - {{ .Binary }}_ + {{- .ProjectName }}_ + {{- .Version }}_ {{- .Os }}_ - {{- if eq .Arch "amd64" }}x64{{ end }} - {{- if eq .Arch "386" }}x86{{ end }} - {{- if eq .Arch "arm64" }}arm64{{ end }} - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + builds: + - cursor-id-modifier + allow_different_binary_count: true + files: + - none* checksum: name_template: 'checksums.txt'