{ "version": "1.2.2", "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.2.2/stdiscosrv-windows-amd64-v1.2.2.zip", "hash": "94eb5448af17da396c9ebd6ff0e7f04e1abec965fa2d7df0543427f033696da0", "extract_dir": "stdiscosrv-windows-amd64-v1.2.2" }, "32bit": { "url": "https://github.com/syncthing/discosrv/releases/download/v1.2.2/stdiscosrv-windows-386-v1.2.2.zip", "hash": "5017d778ba94188b9a63091884b92a3c2efbed4fdc69fb0f836b877526d4ae85", "extract_dir": "stdiscosrv-windows-386-v1.2.2" } }, "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" } } } }