From ee2532175a34a7f2612d9da3d2cbd75947a575ea Mon Sep 17 00:00:00 2001 From: Vaggelis kavouras Date: Sun, 29 Dec 2024 00:14:35 +0200 Subject: [PATCH] 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. --- .goreleaser.yml | 1 - scripts/build_all.bat | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index e324890..791cd44 100644 --- a/.goreleaser.yml +++ b/.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' diff --git a/scripts/build_all.bat b/scripts/build_all.bat index a5c94a6..e07e387 100644 --- a/scripts/build_all.bat +++ b/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%