We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cb4e8f commit e628f9cCopy full SHA for e628f9c
build.sh
@@ -1,13 +1,13 @@
1
#! /bin/bash
2
3
echo "Creating bin"
4
-mkdir -p bin
+mkdir -p bin
5
6
echo "Building for linux"
7
-CGO=0 GOOS=linux GOARCH=amd64 go build -o ./bin/vulphix-linux-amd64
+CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ./bin/vulphix-linux-amd64
8
9
echo "Building for Windows"
10
-CGO=0 GOOS=windows GOARCH=amd64 go build -o ./bin/vulphix-windows-amd64.exe
+CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o ./bin/vulphix-windows-amd64.exe
11
12
echo "Building for Mac"
13
-CGO=0 GOOS=darwin GOARCH=arm64 go build -o ./bin/vulphix-darwin-arm64
+CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o ./bin/vulphix-darwin-arm64
0 commit comments