Changed build script.
This commit is contained in:
10
build-linux.sh
Executable file
10
build-linux.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
ARCH=amd64
|
||||
BIN_NAME="netbox-dns-updater-linux-$ARCH"
|
||||
|
||||
# Build optimized binary and strip debug symbols
|
||||
echo "Building optimized netbox-dns-updater for linux/$ARCH..."
|
||||
GOOS=linux GOARCH=$ARCH go build -ldflags="-s -w" -o build/$BIN_NAME netbox-dns-updater.go
|
||||
echo "Build complete: build/$BIN_NAME (optimized and stripped)"
|
Reference in New Issue
Block a user