Skip to content
Snippets Groups Projects
Unverified Commit 6cdc3865 authored by Massimiliano Adamo's avatar Massimiliano Adamo
Browse files

minor

parent 2e210db0
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# for windows and Mac check the README # for windows and Mac check the README
# #
BIN_NAME=acme-downloader.exe BIN_NAME=acme-downloader
PATH=$PATH:$(go env GOPATH)/bin PATH=$PATH:$(go env GOPATH)/bin
GOPATH=$(go env GOPATH) GOPATH=$(go env GOPATH)
PROG_VERSION="1.0" PROG_VERSION="1.0"
...@@ -57,6 +57,10 @@ if [ -z $PLATFORM -o -z $ARCH ]; then ...@@ -57,6 +57,10 @@ if [ -z $PLATFORM -o -z $ARCH ]; then
usage usage
fi fi
if [ "$PLATFORM" == "windows" ]; then
$BIN_NAME = "${BIN_NAME}.exe"
fi
EXECUTABLE_PATH="${GOPATH}/bin/${PLATFORM}_${ARCH}/${BIN_NAME}" EXECUTABLE_PATH="${GOPATH}/bin/${PLATFORM}_${ARCH}/${BIN_NAME}"
run_upx() { run_upx() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment