From 1752dc96d837e29982b54d57493d552392c9df3f Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Wed, 14 Aug 2019 10:28:26 +0800 Subject: [PATCH] gogs: Move from 'extras' (#320) --- bucket/gogs.json | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 bucket/gogs.json diff --git a/bucket/gogs.json b/bucket/gogs.json new file mode 100644 index 0000000000..89ffaa145d --- /dev/null +++ b/bucket/gogs.json @@ -0,0 +1,59 @@ +{ + "homepage": "https://gogs.io/", + "version": "0.11.91", + "license": "MIT", + "description": "A painless self-hosted Git service", + "architecture": { + "64bit": { + "url": "https://cdn.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", + "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", + "}", + "if (!(Test-Path \"$persist_dir\\custom\\conf\\app.ini\")) {", + " @(", + " '[database]'", + " 'DB_TYPE = sqlite3'", + " \"PATH = $persist_dir/data/gogs.db\"", + " '[repository]'", + " \"ROOT = $persist_dir/repositories\"", + " '[log]'", + " \"ROOT_PATH = $persist_dir/log\"", + " ) -replace '\\\\', '/' | Set-Content \"$persist_dir\\custom\\conf\\app.ini\" -Encoding ASCII", + "}" + ] + }, + "persist": [ + "custom", + "repositories", + "log", + "data" + ], + "checkver": { + "url": "https://raw.githubusercontent.com/gogs/docs/master/en-US/intro/change_log.md", + "regex": "([\\d.]+) @" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://cdn.gogs.io/$version/gogs_$version_windows_amd64_mws.zip" + }, + "32bit": { + "url": "https://cdn.gogs.io/$version/gogs_$version_windows_386_mws.zip" + } + }, + "hash": { + "url": "https://dl.gogs.io/$version/checksum_sha256.txt" + } + } +}