first commit
This commit is contained in:
15
scripts/build.sh
Executable file
15
scripts/build.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
mkdir -p dist
|
||||
|
||||
GOOS="${GOOS:-linux}"
|
||||
GOARCH="${GOARCH:-amd64}"
|
||||
CGO_ENABLED=0 GOOS="$GOOS" GOARCH="$GOARCH" go build \
|
||||
-trimpath \
|
||||
-ldflags="-s -w" \
|
||||
-o "dist/rtorrent-scgi-proxy-${GOOS}-${GOARCH}" \
|
||||
./cmd/rtorrent-scgi-proxy
|
||||
|
||||
printf '%s\n' "dist/rtorrent-scgi-proxy-${GOOS}-${GOARCH}"
|
||||
Reference in New Issue
Block a user