ScoopInstaller_Main/bucket/stdiscosrv.json
2025-09-05 12:31:47 +00:00

55 lines
1.9 KiB
JSON

{
"version": "2.0.7",
"description": "The Syncthing global discovery server",
"homepage": "https://syncthing.net/",
"license": "MPL-2.0",
"architecture": {
"64bit": {
"url": "https://github.com/syncthing/discosrv/releases/download/v2.0.7/stdiscosrv-windows-amd64-v2.0.7.zip",
"hash": "373f3a1ec1ad1f7d8ddba136b2848db99c5f0db924e4aa21ead46c6218538def",
"extract_dir": "stdiscosrv-windows-amd64-v2.0.7"
},
"32bit": {
"url": "https://github.com/syncthing/discosrv/releases/download/v2.0.7/stdiscosrv-windows-386-v2.0.7.zip",
"hash": "44ec21feb5119bbb3e5f8125358e83fa9449610eba8c879efccc8c7e1d28044a",
"extract_dir": "stdiscosrv-windows-386-v2.0.7"
}
},
"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"
}
}
}
}