mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-12-28 11:34:25 +00:00
55 lines
1.9 KiB
JSON
55 lines
1.9 KiB
JSON
{
|
|
"version": "1.29.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.29.2/stdiscosrv-windows-amd64-v1.29.2.zip",
|
|
"hash": "15673ec1a3dbd5a36aa598e4fb4c9cfc1909196429360451334e78346065da19",
|
|
"extract_dir": "stdiscosrv-windows-amd64-v1.29.2"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/syncthing/discosrv/releases/download/v1.29.2/stdiscosrv-windows-386-v1.29.2.zip",
|
|
"hash": "b80cc6b628d5aaff0cf6ff188473311830d1e4cf27c4dda93168bd1e9700efe4",
|
|
"extract_dir": "stdiscosrv-windows-386-v1.29.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"
|
|
}
|
|
}
|
|
}
|
|
}
|