2021-04-12 08:00:17 +00:00

60 lines
2.0 KiB
JSON

{
"version": "1.14.0",
"description": "A painless self-hosted Git service",
"homepage": "https://gitea.io/",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://dl.gitea.io/gitea/1.14.0/gitea-1.14.0-windows-4.0-amd64.exe.xz",
"hash": "9239183dd9b2539ce5c4b9a27c0ed501761ac4a7bfdf3a6d601507fb44a1dd5e"
},
"32bit": {
"url": "https://dl.gitea.io/gitea/1.14.0/gitea-1.14.0-windows-4.0-386.exe.xz",
"hash": "8704dcbf97d67062c9f6900df4f0727e6486e1e4b5ce6bfed412520ae6c10979"
}
},
"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"
}
}
}