Skip to content

Commit

Permalink
fix build and run issues
Browse files Browse the repository at this point in the history
Signed-off-by: Johan Siebens <[email protected]>
  • Loading branch information
jsiebens committed May 22, 2021
1 parent 2f2fa87 commit 1d43494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test:

.PHONY: build
build:
go build -ldflags $(LDFLAGS)
CGO_ENABLED=0 go build -ldflags $(LDFLAGS) -a -installsuffix cgo -o dist/do-droplets

.PHONY: dist
dist:
Expand Down
2 changes: 1 addition & 1 deletion scripts/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ if [ $1 == "windows" ]; then
suffix=".exe"
fi

GOOS=$1 GOARCH=$2 go build -ldflags "-s -w" -o "dist/do-droplets${suffix}"
CGO_ENABLED=0 GOOS=$1 GOARCH=$2 go build -ldflags "-s -w" -a -installsuffix cgo -o "dist/do-droplets${suffix}"
zip -j dist/do-droplets_$1_$2.zip "dist/do-droplets${suffix}"
rm -rf "dist/do-droplets${suffix}"

0 comments on commit 1d43494

Please sign in to comment.