ScoopInstaller_Main/bucket/stdiscosrv.json
2022-01-11 08:29:04 +00:00

55 lines
1.9 KiB
JSON

{
"version": "1.18.6",
"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.18.6/stdiscosrv-windows-amd64-v1.18.6.zip",
"hash": "95371b82fce767d24d2fa6675bbd3a6edebe7f1cf641ceab819f340093f69291",
"extract_dir": "stdiscosrv-windows-amd64-v1.18.6"
},
"32bit": {
"url": "https://github.com/syncthing/discosrv/releases/download/v1.18.6/stdiscosrv-windows-386-v1.18.6.zip",
"hash": "1dd43cc771a2709ae4b6a6459b1ed5b969cdeac5f9ce32dbf3de51610c85412c",
"extract_dir": "stdiscosrv-windows-386-v1.18.6"
}
},
"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"
}
}
}
}