Skip to content

Commit

Permalink
fix: build binaries instead of libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
kklash committed Jun 5, 2023
1 parent 2018805 commit aa8a75a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions repro-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ mkdir -p build
export CGO_ENABLED=0
export GOAMD64=v1
export GO386=sse2
export BUILD_FLAGS="-trimpath -buildvcs=false -ldflags=-sw"

GOVERSION="$(go env GOVERSION)"
echo "Compiling reproducible builds."
Expand All @@ -26,7 +25,7 @@ for os in linux windows darwin; do
outfile="mnemonikey-$os-$arch"
echo "Building $outfile..."

GOOS=$os GOARCH=$arch go build $BUILD_FLAGS -C ./cmd/mnemonikey -o "../../build/$outfile"
GOOS=$os GOARCH=$arch go build -C ./cmd/mnemonikey -trimpath -buildvcs=false -ldflags='-s -w' -o "../../build/$outfile"
done
done

Expand Down

0 comments on commit aa8a75a

Please sign in to comment.