mirror of
https://github.com/rwinkhart/sshyp-labs.git
synced 2026-08-28 12:56:33 -04:00
13 lines
661 B
Bash
Executable File
13 lines
661 B
Bash
Executable File
#!/bin/sh
|
|
# This script generates portable release binaries for the following platforms:
|
|
# - Linux (x86_64_v1)
|
|
# - Linux (aarch64)
|
|
# - Windows (x86_64_v1)
|
|
# - Windows (aarch64)
|
|
|
|
mkdir -p ./1output
|
|
GOOS=linux CGO_ENABLED=0 GOAMD64=v1 go build -o ./1output/gpgToRCW-linux-x86_64_v1 -ldflags="-s -w" -trimpath .
|
|
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o ./1output/gpgToRCW-linux-aarch64 -ldflags="-s -w" -trimpath .
|
|
GOOS=windows CGO_ENABLED=0 GOAMD64=v1 go build -o ./1output/gpgToRCW-windows-x86_64_v1.exe -ldflags="-s -w" -trimpath .
|
|
GOOS=windows GOARCH=arm64 CGO_ENABLED=0 go build -o ./1output/gpgToRCW-windows-aarch64.exe -ldflags="-s -w" -trimpath .
|