Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
update gomake
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed Jul 4, 2016
1 parent faf787f commit b33e6b6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gomake
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,12 @@ build() {
for e in "${current[@]}"; do
echo_green "Building $e"

$(cd ${work_path} && GOOS="${e%-*}" GOARCH="${e#*-}" godep go build -ldflags "-X main.BuildTime=`date -u '+%Y-%m-%d_%H:%M:%S_UTC'` -X main.Version=${version}-`git rev-parse --short HEAD`" \
$(cd ${work_path} && GOOS="${e%-*}" GOARCH="${e#*-}" godep go build -ldflags "-s -w -X main.BuildTime=`date -u '+%Y-%m-%d_%H:%M:%S_UTC'` -X main.Version=${version}-`git rev-parse --short HEAD`" \
-o ${target_name}/${app}-v${version}-${e}/${app})

if [ ${upx} ]; then
# if [ "${e%-*}" != "darwin" ]; then
echo_green "Compressing ${e}"
upx ${work_path}/${target_name}/${app}-v${version}-${e}/${app} &> /dev/null
# fi
echo_green "Compressing ${e}"
upx ${work_path}/${target_name}/${app}-v${version}-${e}/${app} &> /dev/null
fi

if [ "${e%-*}" == "windows" ]; then
Expand Down

0 comments on commit b33e6b6

Please sign in to comment.