Skip to content

Commit

Permalink
Merge pull request #37 from hyperf/build
Browse files Browse the repository at this point in the history
chore: build smaller binary
  • Loading branch information
Reasno committed Mar 17, 2021
2 parents 3370649 + d36d082 commit 6e414c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ do
if [ $GOOS = "windows" ]; then
output_name+='.exe'
fi
echo GOOS=$GOOS GOARCH=$GOARCH go build -o $output_name $package
GOOS=$GOOS GOARCH=$GOARCH go build -o $output_name $package
echo GOOS=$GOOS GOARCH=$GOARCH go build -ldflags="-s -w" -o $output_name $package
GOOS=$GOOS GOARCH=$GOARCH go build -ldflags="-s -w" -o $output_name $package
if [ $? -ne 0 ]; then
echo 'An error has occurred! Aborting the script execution...'
exit 1
fi
done
done

0 comments on commit 6e414c7

Please sign in to comment.