2022-03-14 13:25:27 +05:30

54 lines
1.6 KiB
JSON

{
"version": "0.12.5",
"description": "A painless self-hosted Git service",
"homepage": "https://gogs.io",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://dl.gogs.io/0.12.5/gogs_0.12.5_windows_amd64_mws.zip",
"hash": "4b921b807aea34d4ff2c608788d0578fd51d5540d1956365bce8969761ec5b44"
}
},
"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": "href=\"([\\d.]+)/",
"reverse": true
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://dl.gogs.io/$version/gogs_$version_windows_amd64_mws.zip"
}
},
"hash": {
"url": "$baseurl/checksum_sha256.txt"
}
}
}