Browse Source

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.
pull/85/head
Vaggelis kavouras 5 months ago
parent
commit
ee2532175a
  1. 1
      .goreleaser.yml
  2. 1
      scripts/build_all.bat

1
.goreleaser.yml

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

1
scripts/build_all.bat

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

Loading…
Cancel
Save