1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gogs_ynh.git synced 2024-09-03 20:36:23 +02:00

[enh] upgrade to releases 0.10.1. Change version pattern.

This commit is contained in:
Moul 2017-03-02 13:54:38 +01:00
parent 21802ac1c6
commit b36c0265c8

View file

@ -5,17 +5,17 @@
APPNAME="gogs" APPNAME="gogs"
# Gogs version # Gogs version
VERSION="0.9.141" VERSION="0.10.1"
# Detect the system architecture to download the right tarball # Detect the system architecture to download the right tarball
# NOTE: `uname -m` is more accurate and universal than `arch` # NOTE: `uname -m` is more accurate and universal than `arch`
# See https://en.wikipedia.org/wiki/Uname # See https://en.wikipedia.org/wiki/Uname
if [ -n "$(uname -m | grep 64)" ]; then if [ -n "$(uname -m | grep 64)" ]; then
ARCHITECTURE="amd64" ARCHITECTURE="linux_amd64"
elif [ -n "$(uname -m | grep 86)" ]; then elif [ -n "$(uname -m | grep 86)" ]; then
ARCHITECTURE="386" ARCHITECTURE="linux_386"
elif [ -n "$(uname -m | grep arm)" ]; then elif [ -n "$(uname -m | grep arm)" ]; then
ARCHITECTURE="armv6" ARCHITECTURE="raspi2_armv6"
else else
echo 'Unable to detect your achitecture, please open a bug describing \ echo 'Unable to detect your achitecture, please open a bug describing \
your hardware and the result of the command "uname -m".' your hardware and the result of the command "uname -m".'
@ -23,7 +23,7 @@ else
fi fi
# Remote URL to fetch Gogs tarball # 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 # Common helpers