Skip to content

Commit

Permalink
disable cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalraja committed Mar 8, 2024
1 parent 62359cd commit 1d7774a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
echo "Building..."
rm -rf ./build
GOOS=windows GOARCH=amd64 go build -o build/win/sitegen.exe
GOOS=linux GOARCH=amd64 go build -o build/linux/sitegen
GOOS=darwin GOARCH=amd64 go build -o build/darwin/sitegen
GOOS=darwin GOARCH=arm64 go build -o build/darwin-arm64/sitegen
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o build/win/sitegen.exe
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/linux/sitegen
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o build/darwin/sitegen
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o build/darwin-arm64/sitegen
cd build/win
zip -rq ../win.zip . -x ".*"
cd ../linux
Expand Down

0 comments on commit 1d7774a

Please sign in to comment.