mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-01-22 08:14:08 +00:00
36 lines
872 B
PowerShell
36 lines
872 B
PowerShell
# Parent dir is root
|
|
$scriptDir = Get-Location
|
|
$outDir = Join-Path -Path $scriptDir -ChildPath "/_out"
|
|
|
|
# Windows x64
|
|
$env:GOARCH = "amd64"
|
|
$env:GOOS = "windows"
|
|
$env:CGO_ENABLED = 0
|
|
go build -o $outDir/apc-p15-tool-amd64.exe ./cmd/tool
|
|
|
|
$env:GOARCH = "amd64"
|
|
$env:GOOS = "windows"
|
|
$env:CGO_ENABLED = 0
|
|
go build -o $outDir/apc-p15-install-amd64.exe ./cmd/install_only
|
|
|
|
# Linux x64
|
|
$env:GOARCH = "amd64"
|
|
$env:GOOS = "linux"
|
|
$env:CGO_ENABLED = 0
|
|
go build -o $outDir/apc-p15-tool-amd64 ./cmd/tool
|
|
|
|
$env:GOARCH = "amd64"
|
|
$env:GOOS = "linux"
|
|
$env:CGO_ENABLED = 0
|
|
go build -o $outDir/apc-p15-install-amd64 ./cmd/install_only
|
|
|
|
# Linux arm64
|
|
$env:GOARCH = "arm64"
|
|
$env:GOOS = "linux"
|
|
$env:CGO_ENABLED = 0
|
|
go build -o $outDir/apc-p15-tool-arm64 ./cmd/tool
|
|
|
|
$env:GOARCH = "arm64"
|
|
$env:GOOS = "linux"
|
|
$env:CGO_ENABLED = 0
|
|
go build -o $outDir/apc-p15-install-arm64 ./cmd/install_only
|