From 556e0321eb04a3d33dfccd6e2a2fdf381cb512a4 Mon Sep 17 00:00:00 2001 From: Lars Karlslund Date: Thu, 20 Oct 2022 12:30:59 +0200 Subject: [PATCH] Fixed extensions for binaries built with the script --- build.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.ps1 b/build.ps1 index 12bf2c6..f55ae5e 100644 --- a/build.ps1 +++ b/build.ps1 @@ -13,7 +13,7 @@ function BuildVariants { foreach ($currentos in $os) { $env:GOARCH = $currentarch $env:GOOS = $currentos - go build -ldflags "$ldflags" -o binaries/$prefix-$currentos-$currentarch-$VERSION$suffix.exe $compileflags $path + go build -ldflags "$ldflags" -o binaries/$prefix-$currentos-$currentarch-$VERSION$suffix $compileflags $path if (Get-Command "cyclonedx-gomod" -ErrorAction SilentlyContinue) { cyclonedx-gomod app -json -licenses -output binaries/$prefix-$currentos-$currentarch-$VERSION$suffix.bom.json -main $path . @@ -35,5 +35,6 @@ if ("$DIRTYFILES" -ne "") { $LDFLAGS = "-X github.com/lkarlslund/adalanche/modules/version.Commit=$COMMIT -X github.com/lkarlslund/adalanche/modules/version.Version=$VERSION" # Release -BuildVariants -ldflags "$LDFLAGS -s" -prefix adalanche-collector -path ./collector -arch @("386") -os @("windows") -BuildVariants -ldflags "$LDFLAGS -s" -prefix adalanche -path ./adalanche -arch @("amd64", "arm64") -os @("windows", "darwin", "linux") +BuildVariants -ldflags "$LDFLAGS -s" -prefix adalanche-collector -path ./collector -arch @("386") -os @("windows") -suffix ".exe" +BuildVariants -ldflags "$LDFLAGS -s" -prefix adalanche -path ./adalanche -arch @("amd64", "arm64") -os @("windows") -suffix ".exe" +BuildVariants -ldflags "$LDFLAGS -s" -prefix adalanche -path ./adalanche -arch @("amd64", "arm64") -os @("darwin", "linux")