10 lines
381 B
Bash
10 lines
381 B
Bash
|
#!/bin/bash
|
||
|
set -x
|
||
|
|
||
|
|
||
|
BIN="UYC-Router-PT952G-Root-Password"
|
||
|
|
||
|
|
||
|
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ${BIN}-linux-arm64 -a -ldflags '-extldflags "-static"'
|
||
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ${BIN}-linux-amd64 -a -ldflags '-extldflags "-static"'
|
||
|
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ${BIN}-linux-amd64.exe -a -ldflags '-extldflags "-static"'
|