From 9108493c9caa09eab3fd2ea2a1b3f4b0fca61ee4 Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Fri, 16 Aug 2019 20:23:49 +0800 Subject: [PATCH] gitea: Move from 'extras' (#336) * gitea: Move from 'extras' * Fix installer.script --- bucket/gitea.json | 59 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 bucket/gitea.json diff --git a/bucket/gitea.json b/bucket/gitea.json new file mode 100644 index 0000000000..917f225e6d --- /dev/null +++ b/bucket/gitea.json @@ -0,0 +1,59 @@ +{ + "homepage": "https://gitea.io/", + "version": "1.9.1", + "description": "A painless self-hosted Git service.", + "license": "MIT", + "architecture": { + "64bit": { + "url": "https://dl.gitea.io/gitea/1.9.1/gitea-1.9.1-windows-4.0-amd64.exe.xz", + "hash": "b889f8fd41bd52e5c64296a3407164deffb26623743921dd3aef044252f35f00" + }, + "32bit": { + "url": "https://dl.gitea.io/gitea/1.9.1/gitea-1.9.1-windows-4.0-386.exe.xz", + "hash": "2c1ef8b4feacdd8e5f6146e89687f08c5f1e92eeb164d99d9ed1a867e62c2b38" + } + }, + "installer": { + "script": [ + "Get-Item \"$dir\\gitea*.exe\" | Rename-Item -NewName 'gitea.exe'", + "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/gitea.db\"", + " '[repository]'", + " \"ROOT = $persist_dir/repositories\"", + " '[log]'", + " \"ROOT_PATH = $persist_dir/log\"", + " ) -replace '\\\\', '/' | Set-Content \"$persist_dir\\custom\\conf\\app.ini\" -Encoding ASCII", + "}" + ] + }, + "bin": "gitea.exe", + "persist": [ + "custom", + "repositories", + "log", + "data" + ], + "checkver": { + "url": "https://blog.gitea.io/", + "regex": "Gitea.*?([\\d.]+)" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://dl.gitea.io/gitea/$version/gitea-$version-windows-4.0-amd64.exe.xz" + }, + "32bit": { + "url": "https://dl.gitea.io/gitea/$version/gitea-$version-windows-4.0-386.exe.xz" + } + }, + "hash": { + "url": "$url.sha256" + } + } +}