ScoopInstaller_Main/bucket/stdiscosrv.json
2025-01-06 08:31:00 +00:00

55 lines
1.9 KiB
JSON

{
"version": "1.29.0",
"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.29.0/stdiscosrv-windows-amd64-v1.29.0.zip",
"hash": "e00753408dcc74b9c1c08ecdb8ce4ae9a456ba40bceb68cf8c55bf5ae95f5915",
"extract_dir": "stdiscosrv-windows-amd64-v1.29.0"
},
"32bit": {
"url": "https://github.com/syncthing/discosrv/releases/download/v1.29.0/stdiscosrv-windows-386-v1.29.0.zip",
"hash": "ab0174087e06fcc83eba8a58164f1114c7b3bd3edf8602135c713baf3934836c",
"extract_dir": "stdiscosrv-windows-386-v1.29.0"
}
},
"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"
}
}
}
}