2022-03-09 13:00:36 +08:00

58 lines
2.0 KiB
JSON

{
"version": "0.4.6.10",
"description": "Enables anonymous communication over the onion network (expert mode).",
"homepage": "https://www.torproject.org",
"license": "BSD-3-Clause",
"notes": [
"You will need to configure Tor before using, as it does not come pre-configured.",
"See https://tb-manual.torproject.org/ for details."
],
"architecture": {
"64bit": {
"url": "https://dist.torproject.org/torbrowser/11.0.7/tor-win64-0.4.6.10.zip",
"hash": "8eb81cae2a54103483c2740c22c75bdd01f646a3c38e88a011da4e4bafbd34e6"
},
"32bit": {
"url": "https://dist.torproject.org/torbrowser/11.0.7/tor-win32-0.4.6.10.zip",
"hash": "9c7be9e0c62a8e98b4cac161bdd0f65b8f8163a0045e654c626a4eda127ed819"
}
},
"pre_install": [
"$current_dir = if (get_config NO_JUNCTIONS) { $dir } else { \"$(appdir $app $global)\\current\" }",
"$content = @(",
" \"DataDirectory `\"$current_dir\\Data\\Data`\"\"",
" \"GeoIPFile `\"$current_dir\\Data\\Tor\\geoip`\"\"",
" \"GeoIPv6File `\"$current_dir\\Data\\Tor\\geoip6`\"\"",
")",
"if (!(Test-Path \"$persist_dir\\torrc\")) {",
" Add-Content \"$dir\\torrc\" $content.Replace('\\', '/') -Encoding ASCII -Force",
"}"
],
"bin": [
[
"Tor\\tor.exe",
"tor",
"-f \"$dir\\torrc\""
],
"Tor\\tor-gencert.exe"
],
"persist": [
"Data\\Data",
"torrc"
],
"checkver": {
"url": "https://www.torproject.org/download/tor/",
"regex": "dist/torbrowser/(?<browser>[\\d.]+)/tor-win32-(?<version>[\\d.]+)\\.zip"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://dist.torproject.org/torbrowser/$matchBrowser/tor-win64-$version.zip"
},
"32bit": {
"url": "https://dist.torproject.org/torbrowser/$matchBrowser/tor-win32-$version.zip"
}
}
}
}