Skip to content

Commit c6f0fc1

Browse files
committed
Build fix take two
1 parent ff52afc commit c6f0fc1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build.ps1

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
function BuildVariants {
22
param (
3+
$builder,
34
$ldflags,
45
$compileflags,
56
$prefix,
@@ -25,7 +26,7 @@ function BuildVariants {
2526
$outputfile += ".exe"
2627
}
2728

28-
& $BUILDER build -ldflags "$ldflags" -o $outputfile $compileflags $path
29+
$builder build -ldflags "$ldflags" -o $outputfile $compileflags $path
2930
if (Get-Command "cyclonedx-gomod" -ErrorAction SilentlyContinue)
3031
{
3132
cyclonedx-gomod app -json -licenses -output $outputfile.bom.json -main $path .
@@ -37,8 +38,8 @@ function BuildVariants {
3738
Set-Location $PSScriptRoot
3839

3940
# Release
40-
BuildVariants -ldflags "$LDFLAGS -s" -prefix ldapnomnom -path . -arch @("386", "amd64", "arm64") -os @("windows", "darwin", "linux")
41+
BuildVariants -builder go -ldflags "$LDFLAGS -s" -prefix ldapnomnom -path . -arch @("386", "amd64", "arm64") -os @("windows", "darwin", "linux")
4142

42-
$BUILDER = "garble"
4343
$env:GOGARBLE="github.com/lkarlslund"
44-
BuildVariants -ldflags "$LDFLAGS -s" -prefix ldapnomnom -path . -arch @("386", "amd64", "arm64") -os @("windows", "darwin", "linux") -suffix "-obfuscated"
44+
45+
BuildVariants -builder garble -ldflags "$LDFLAGS -s" -prefix ldapnomnom -path . -arch @("386", "amd64", "arm64") -os @("windows", "darwin", "linux") -suffix "-obfuscated"

0 commit comments

Comments
 (0)