2020-04-01 21:45:46 +08:00

61 lines
2.0 KiB
JSON

{
"version": "0.11.91",
"description": "A painless self-hosted Git service",
"homepage": "https://gogs.io",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://dl.gogs.io/0.11.91/gogs_0.11.91_windows_amd64_mws.zip",
"hash": "118763084c0b0fd28fac702c8e009e1a58c734fa86c06dd2ca46c0e9b4c14204"
},
"32bit": {
"url": "https://dl.gogs.io/0.11.91/gogs_0.11.91_windows_386_mws.zip",
"hash": "bdb954807df5933294bd516b19cc9d1c06c86df7d0a444640741752e3373bd87"
}
},
"extract_dir": "gogs",
"installer": {
"script": [
"if (!(Test-Path \"$persist_dir\\custom\\conf\")) {",
" New-Item \"$persist_dir\\custom\\conf\" -ItemType Directory -Force | 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",
"}"
]
},
"bin": "gogs.exe",
"persist": [
"custom",
"data",
"log",
"repositories"
],
"checkver": {
"url": "https://dl.gogs.io",
"regex": "\\./([\\d.]+)/",
"reverse": true
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://dl.gogs.io/$version/gogs_$version_windows_amd64_mws.zip"
},
"32bit": {
"url": "https://dl.gogs.io/$version/gogs_$version_windows_386_mws.zip"
}
},
"hash": {
"url": "$baseurl/checksum_sha256.txt"
}
}
}