Skip to content

Commit e628f9c

Browse files
committed
better builds
1 parent 7cb4e8f commit e628f9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#! /bin/bash
22

33
echo "Creating bin"
4-
mkdir -p bin
4+
mkdir -p bin
55

66
echo "Building for linux"
7-
CGO=0 GOOS=linux GOARCH=amd64 go build -o ./bin/vulphix-linux-amd64
7+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ./bin/vulphix-linux-amd64
88

99
echo "Building for Windows"
10-
CGO=0 GOOS=windows GOARCH=amd64 go build -o ./bin/vulphix-windows-amd64.exe
10+
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o ./bin/vulphix-windows-amd64.exe
1111

1212
echo "Building for Mac"
13-
CGO=0 GOOS=darwin GOARCH=arm64 go build -o ./bin/vulphix-darwin-arm64
13+
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o ./bin/vulphix-darwin-arm64

0 commit comments

Comments
 (0)