From fed8552fcd620b1710e9c171b3ffede4c1f64be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C4=8C=C3=A1bera?= Date: Wed, 1 Apr 2020 15:45:46 +0200 Subject: [PATCH] gogs: Fix checkver (#942) --- bucket/gogs.json | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/bucket/gogs.json b/bucket/gogs.json index 89ffaa145d..36b247ebcd 100644 --- a/bucket/gogs.json +++ b/bucket/gogs.json @@ -1,24 +1,23 @@ { - "homepage": "https://gogs.io/", "version": "0.11.91", - "license": "MIT", "description": "A painless self-hosted Git service", + "homepage": "https://gogs.io", + "license": "MIT", "architecture": { "64bit": { - "url": "https://cdn.gogs.io/0.11.91/gogs_0.11.91_windows_amd64_mws.zip", + "url": "https://dl.gogs.io/0.11.91/gogs_0.11.91_windows_amd64_mws.zip", "hash": "118763084c0b0fd28fac702c8e009e1a58c734fa86c06dd2ca46c0e9b4c14204" }, "32bit": { - "url": "https://cdn.gogs.io/0.11.91/gogs_0.11.91_windows_386_mws.zip", + "url": "https://dl.gogs.io/0.11.91/gogs_0.11.91_windows_386_mws.zip", "hash": "bdb954807df5933294bd516b19cc9d1c06c86df7d0a444640741752e3373bd87" } }, "extract_dir": "gogs", - "bin": "gogs.exe", "installer": { "script": [ "if (!(Test-Path \"$persist_dir\\custom\\conf\")) {", - " New-Item \"$persist_dir\\custom\\conf\" -ItemType Directory | Out-Null", + " New-Item \"$persist_dir\\custom\\conf\" -ItemType Directory -Force | Out-Null", "}", "if (!(Test-Path \"$persist_dir\\custom\\conf\\app.ini\")) {", " @(", @@ -33,27 +32,29 @@ "}" ] }, + "bin": "gogs.exe", "persist": [ "custom", - "repositories", + "data", "log", - "data" + "repositories" ], "checkver": { - "url": "https://raw.githubusercontent.com/gogs/docs/master/en-US/intro/change_log.md", - "regex": "([\\d.]+) @" + "url": "https://dl.gogs.io", + "regex": "\\./([\\d.]+)/", + "reverse": true }, "autoupdate": { "architecture": { "64bit": { - "url": "https://cdn.gogs.io/$version/gogs_$version_windows_amd64_mws.zip" + "url": "https://dl.gogs.io/$version/gogs_$version_windows_amd64_mws.zip" }, "32bit": { - "url": "https://cdn.gogs.io/$version/gogs_$version_windows_386_mws.zip" + "url": "https://dl.gogs.io/$version/gogs_$version_windows_386_mws.zip" } }, "hash": { - "url": "https://dl.gogs.io/$version/checksum_sha256.txt" + "url": "$baseurl/checksum_sha256.txt" } } }