Skip to content

Commit

Permalink
shorten released archives name to binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppodelldog committed May 12, 2019
1 parent c903a22 commit 1ef2a59
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .release/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ else
fi

target_folder=".release"
package="github.com/Oppodelldog/droxy"
binary_name="droxy"
package="github.com/Oppodelldog/${binary_name}"
ldflags=-ldflags="-X github.com/Oppodelldog/droxy/version.Number=${tag}"

package_split=("${package//\// }")
package_name="${package_split[-1]}"

platforms=("linux/amd64" "windows/amd64" "windows/386" "linux/arm/7")

for platform in "${platforms[@]}"
Expand All @@ -42,7 +40,7 @@ do
fi

output_folder="${GOOS}-${GOARCH}${GOARM}"
output_name=${package_name}
output_name=${binary_name}
if [ "${GOOS}" = "windows" ]; then
output_name+='.exe'
fi
Expand Down

0 comments on commit 1ef2a59

Please sign in to comment.