diff --git a/scripts/_common.sh b/scripts/_common.sh index 2b53b65..3d32265 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,17 +5,17 @@ APPNAME="gogs" # Gogs version -VERSION="0.9.141" +VERSION="0.10.1" # Detect the system architecture to download the right tarball # NOTE: `uname -m` is more accurate and universal than `arch` # See https://en.wikipedia.org/wiki/Uname if [ -n "$(uname -m | grep 64)" ]; then - ARCHITECTURE="amd64" + ARCHITECTURE="linux_amd64" elif [ -n "$(uname -m | grep 86)" ]; then - ARCHITECTURE="386" + ARCHITECTURE="linux_386" elif [ -n "$(uname -m | grep arm)" ]; then - ARCHITECTURE="armv6" + ARCHITECTURE="raspi2_armv6" else echo 'Unable to detect your achitecture, please open a bug describing \ your hardware and the result of the command "uname -m".' @@ -23,7 +23,7 @@ else fi # Remote URL to fetch Gogs tarball -GOGS_BINARY_URL="https://github.com/gogits/gogs/releases/download/v${VERSION}/linux_${ARCHITECTURE}.zip" +GOGS_BINARY_URL="https://github.com/gogits/gogs/releases/download/v${VERSION}/${ARCHITECTURE}.zip" # # Common helpers