{ "version": "2.0.9", "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.9/stdiscosrv-windows-amd64-v2.0.9.zip", "hash": "57ad6c757b64cb36db3aedebeaebd2c07814af810015e56a752c7639825177e2", "extract_dir": "stdiscosrv-windows-amd64-v2.0.9" }, "32bit": { "url": "https://github.com/syncthing/discosrv/releases/download/v2.0.9/stdiscosrv-windows-386-v2.0.9.zip", "hash": "3f2118483acc39fbf751035b8f7dd44d113124d3e1bbfc171bd565377cab4bc1", "extract_dir": "stdiscosrv-windows-386-v2.0.9" } }, "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" } } } }