ScoopInstaller_Main/bucket/stdiscosrv.json
2019-11-05 10:00:53 +00:00

55 lines
1.9 KiB
JSON

{
"version": "1.3.1",
"description": "The Syncthing global discovery server",
"homepage": "https://syncthing.net/",
"license": "MPL-2.0",
"architecture": {
"64bit": {
"url": "https://github.com/syncthing/discosrv/releases/download/v1.3.1/stdiscosrv-windows-amd64-v1.3.1.zip",
"hash": "cb53defff363d923cadb744944ca6a111b2a2e4e58f89a9a114f31ce9ace202a",
"extract_dir": "stdiscosrv-windows-amd64-v1.3.1"
},
"32bit": {
"url": "https://github.com/syncthing/discosrv/releases/download/v1.3.1/stdiscosrv-windows-386-v1.3.1.zip",
"hash": "62238344df30f201bfa56102dfb362407e9045f4c946fc35b0c47c85e2cc50fd",
"extract_dir": "stdiscosrv-windows-386-v1.3.1"
}
},
"bin": [
[
"stdiscosrv.exe",
"stdiscosrv",
"-cert \"$dir\\cert.pem\"",
"-db-dir \"$dir\\discovery.db\"",
"-key \"$dir\\key.pem\""
]
],
"persist": [
"discovery.db",
"cert.pem",
"key.pem"
],
"pre_install": [
"foreach ($name in @('cert.pem', 'key.pem')) {",
" if (!(Test-Path \"$persist_dir\\$name\")) {",
" New-Item -Force -Path \"$dir\" -Name $name | Out-Null",
" }",
"}"
],
"checkver": {
"github": "https://github.com/syncthing/discosrv"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/syncthing/discosrv/releases/download/v$version/stdiscosrv-windows-amd64-v$version.zip",
"extract_dir": "stdiscosrv-windows-amd64-v$version"
},
"32bit": {
"url": "https://github.com/syncthing/discosrv/releases/download/v$version/stdiscosrv-windows-386-v$version.zip",
"extract_dir": "stdiscosrv-windows-386-v$version"
}
}
}
}