Skip to content

Commit efbc5ff

Browse files
committed
Build script fix
1 parent fd1a09d commit efbc5ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.ps1

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ function BuildVariants {
1313
foreach ($currentos in $os) {
1414
$env:GOARCH = $currentarch
1515
$env:GOOS = $currentos
16-
$outputfile = binaries/$prefix-$currentos-$currentarch$suffix
16+
$outputfile = "binaries/$prefix-$currentos-$currentarch$suffix"
17+
if ($currentos -eq "windows") {
18+
$outputfile += ".exe"
19+
}
1720
go build -ldflags "$ldflags" -o $outputfile $compileflags $path
1821
if (Get-Command "cyclonedx-gomod" -ErrorAction SilentlyContinue)
1922
{

0 commit comments

Comments
 (0)