mirror of
https://github.com/ScoopInstaller/Main.git
synced 2026-02-04 11:04:49 +00:00
55 lines
1.9 KiB
JSON
55 lines
1.9 KiB
JSON
{
|
|
"version": "2.0.13",
|
|
"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.13/stdiscosrv-windows-amd64-v2.0.13.zip",
|
|
"hash": "60ae40c991dfc3ab81d4b5ba1335434296b1fc69f7457c06c2be1fbd4c8b3483",
|
|
"extract_dir": "stdiscosrv-windows-amd64-v2.0.13"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/syncthing/discosrv/releases/download/v2.0.13/stdiscosrv-windows-386-v2.0.13.zip",
|
|
"hash": "b07e65bbdb5be12dcfff0fbcc855894619a69f8d0b00eedc81db3121b421456d",
|
|
"extract_dir": "stdiscosrv-windows-386-v2.0.13"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|