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

Commit

Permalink
bump gomake
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed Dec 20, 2016
1 parent 3470f1c commit d47d17f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gomake
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,16 @@ build() {
}

targetBinaryPath() {
echo ${app}-v${version}-${1}/${app}
if [ "${1%-*}" == "windows" ]; then
echo ${app}-v${version}-${1}/${app}.exe
else
echo ${app}-v${version}-${1}/${app}
fi
}

install() {
echo_green "Installing"
cp ${work_path}/${target_name}/${app}-v${version}-$(go env GOHOSTOS)-$(go env GOHOSTARCH)/${app}* ${GOPATH}/bin/
cp ${work_path}/${target_name}/$(targetBinaryPath $(go env GOHOSTOS)-$(go env GOHOSTARCH)) ${GOPATH}/bin/
}

quality() {
Expand Down

0 comments on commit d47d17f

Please sign in to comment.