fix: streamline Windows binary extension handling in configuration

- Removed the redundant assignment of the ".exe" extension in .goreleaser.yml.
- Added conditional assignment of the ".exe" extension in build_all.bat to ensure clarity and consistency in binary naming for Windows builds.
This commit is contained in:
Vaggelis kavouras 2024-12-29 00:14:35 +02:00
parent 0f0d1c7d6f
commit ee2532175a
2 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,6 @@ archives:
{{- if eq .Arch "arm64" }}arm64{{ end }} {{- if eq .Arch "arm64" }}arm64{{ end }}
{{- if and (eq .Os "darwin") (eq .Arch "amd64") }}_intel{{ end }} {{- if and (eq .Os "darwin") (eq .Arch "amd64") }}_intel{{ end }}
{{- if and (eq .Os "darwin") (eq .Arch "arm64") }}_apple_silicon{{ end }} {{- if and (eq .Os "darwin") (eq .Arch "arm64") }}_apple_silicon{{ end }}
{{- if eq .Os "windows" }}.exe{{ end }}
checksum: checksum:
name_template: 'checksums.txt' name_template: 'checksums.txt'

View File

@ -33,6 +33,7 @@ mkdir "..\bin" 2>nul
set "os=%~1" set "os=%~1"
set "arch=%~2" set "arch=%~2"
set "ext=" set "ext="
if "%os%"=="windows" set "ext=.exe"
echo %GREEN%!EN_MESSAGES[5]! %os%/%arch%%RESET% echo %GREEN%!EN_MESSAGES[5]! %os%/%arch%%RESET%