gitea: Move from 'extras' (#336)

* gitea: Move from 'extras'

* Fix installer.script
This commit is contained in:
Hsiao-nan Cheung 2019-08-16 20:23:49 +08:00 committed by Richard Kuhnt
parent dbfcdc824a
commit 9108493c9c

59
bucket/gitea.json Normal file
View File

@ -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"
}
}
}