2024-02-02 23:35:22 +00:00
|
|
|
# Parent dir is root
|
|
|
|
$scriptDir = Get-Location
|
|
|
|
$outDir = Join-Path -Path $scriptDir -ChildPath "/_out"
|
|
|
|
|
|
|
|
# Windows x64
|
|
|
|
$env:GOARCH = "amd64"
|
|
|
|
$env:GOOS = "windows"
|
2024-02-03 19:07:26 +00:00
|
|
|
$env:CGO_ENABLED = 0
|
2024-02-02 23:35:22 +00:00
|
|
|
go build -o $outDir/apc-p15-tool-amd64.exe ./cmd/tool
|
|
|
|
|
2024-02-03 17:47:21 +00:00
|
|
|
$env:GOARCH = "amd64"
|
|
|
|
$env:GOOS = "windows"
|
2024-02-03 19:07:26 +00:00
|
|
|
$env:CGO_ENABLED = 0
|
2024-06-19 01:30:42 +00:00
|
|
|
go build -o $outDir/apc-p15-install-amd64.exe ./cmd/install_only
|
2024-02-03 17:47:21 +00:00
|
|
|
|
2024-02-02 23:35:22 +00:00
|
|
|
# Linux x64
|
|
|
|
$env:GOARCH = "amd64"
|
|
|
|
$env:GOOS = "linux"
|
2024-02-03 19:07:26 +00:00
|
|
|
$env:CGO_ENABLED = 0
|
2024-02-02 23:35:22 +00:00
|
|
|
go build -o $outDir/apc-p15-tool-amd64 ./cmd/tool
|
|
|
|
|
|
|
|
$env:GOARCH = "amd64"
|
|
|
|
$env:GOOS = "linux"
|
2024-02-03 19:07:26 +00:00
|
|
|
$env:CGO_ENABLED = 0
|
2024-02-02 23:35:22 +00:00
|
|
|
go build -o $outDir/apc-p15-install-amd64 ./cmd/install_only
|
2024-02-03 17:47:21 +00:00
|
|
|
|
|
|
|
# Linux arm64
|
|
|
|
$env:GOARCH = "arm64"
|
|
|
|
$env:GOOS = "linux"
|
2024-02-03 19:07:26 +00:00
|
|
|
$env:CGO_ENABLED = 0
|
2024-02-03 17:47:21 +00:00
|
|
|
go build -o $outDir/apc-p15-tool-arm64 ./cmd/tool
|
|
|
|
|
|
|
|
$env:GOARCH = "arm64"
|
|
|
|
$env:GOOS = "linux"
|
2024-02-03 19:07:26 +00:00
|
|
|
$env:CGO_ENABLED = 0
|
2024-02-03 17:47:21 +00:00
|
|
|
go build -o $outDir/apc-p15-install-arm64 ./cmd/install_only
|