diff --git a/scripts/build b/scripts/build index a418885..1e9a003 100755 --- a/scripts/build +++ b/scripts/build @@ -6,8 +6,8 @@ cd $(dirname $0)/.. TAGS="netcgo osusergo static_build" LDFLAGS="-w -s -X main.version=$VERSION" -CGO_ENABLED=0 go build -v -tags "$TAGS" -ldflags "$LDFLAGS" -o bin/wharfie-amd64 ./main.go +CGO_ENABLED=0 go build -v -tags "$TAGS" -ldflags "$LDFLAGS" -o bin/wharfie-amd64 if [ "$CROSS" = "true" ] && [ "$ARCH" = "amd64" ]; then CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -tags "$TAGS" -ldflags "$LDFLAGS" -o bin/wharfie-arm64 -fi \ No newline at end of file +fi