Kaynağa Gözat

Upgrade gogs

Bob Mottram 6 yıl önce
ebeveyn
işleme
611a6759ff
1 değiştirilmiş dosya ile 9 ekleme ve 9 silme
  1. 9
    9
      src/freedombone-app-gogs

+ 9
- 9
src/freedombone-app-gogs Dosyayı Görüntüle

@@ -32,7 +32,7 @@ IN_DEFAULT_INSTALL=0
32 32
 SHOW_ON_ABOUT=1
33 33
 
34 34
 GOGS_USERNAME='gogs'
35
-GOGS_VERSION='0.11.29'
35
+GOGS_VERSION='0.11.53'
36 36
 
37 37
 GOGS_DOMAIN_NAME=
38 38
 GOGS_CODE=
@@ -124,8 +124,8 @@ function gogs_parameters {
124 124
         fi
125 125
     fi
126 126
 
127
-    GOGS_FILE=linux_${CURR_ARCH}.tar.gz
128
-    GOGS_BIN="https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/${GOGS_FILE}"
127
+    GOGS_FILE=gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.tar.gz
128
+    GOGS_BIN="https://dl.gogs.io/${GOGS_VERSION}/${GOGS_FILE}"
129 129
 }
130 130
 
131 131
 function gogs_create_database {
@@ -192,13 +192,13 @@ function upgrade_gogs {
192 192
     if [ -d "${INSTALL_DIR}/gogs" ]; then
193 193
         rm -rf "${INSTALL_DIR}/gogs"
194 194
     fi
195
-    GOGS_FILE=linux_${CURR_ARCH}.tar.gz
195
+    GOGS_FILE=gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.tar.gz
196 196
     if [ ! -f ${GOGS_FILE} ]; then
197 197
         wget ${GOGS_BIN}
198 198
     fi
199 199
     if [ ! -f ${GOGS_FILE} ]; then
200
-        GOGS_FILE=linux_${CURR_ARCH}.zip
201
-        GOGS_BIN="https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/${GOGS_FILE}"
200
+        GOGS_FILE=gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.zip
201
+        GOGS_BIN="https://dl.gogs.io/${GOGS_VERSION}/${GOGS_FILE}"
202 202
         if [ ! -f ${GOGS_FILE} ]; then
203 203
             wget ${GOGS_BIN}
204 204
         fi
@@ -502,13 +502,13 @@ function install_gogs {
502 502
     if [ -d "$INSTALL_DIR/gogs" ]; then
503 503
         rm -rf "$INSTALL_DIR/gogs"
504 504
     fi
505
-    GOGS_FILE="linux_${CURR_ARCH}.tar.gz"
505
+    GOGS_FILE="gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.tar.gz"
506 506
     if [ ! -f ${GOGS_FILE} ]; then
507 507
         wget ${GOGS_BIN}
508 508
     fi
509 509
     if [ ! -f ${GOGS_FILE} ]; then
510
-        GOGS_FILE=linux_${CURR_ARCH}.zip
511
-        GOGS_BIN="https://github.com/gogits/gogs/releases/download/v${GOGS_VERSION}/${GOGS_FILE}"
510
+        GOGS_FILE="gogs_${GOGS_VERSION}_linux_${CURR_ARCH}.zip"
511
+        GOGS_BIN="https://dl.gogs.io/${GOGS_VERSION}/${GOGS_FILE}"
512 512
         wget ${GOGS_BIN}
513 513
         if [ ! -f ${GOGS_FILE} ]; then
514 514
             exit 37836