lightsystemdarkgreen
@ 261119.81
current
{
    "version": "0.4.9.16-16.0.1",
    "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://archive.torproject.org/tor-package-archive/torbrowser/16.0.1/tor-expert-bundle-windows-x86_64-16.0.1.tar.gz",
            "hash": "9eed3c3ff1fe43df034ce360196c9ec95472560d77ff55614d0cd5120edea27b"
        },
        "32bit": {
            "url": "https://archive.torproject.org/tor-package-archive/torbrowser/16.0.1/tor-expert-bundle-windows-i686-16.0.1.tar.gz",
            "hash": "4aa4bed8397349612c7dda0e13697b92f40059763a7158d037be7bed5429232c"
        }
    },
    "pre_install": [
        "$current_dir = if (get_config NO_JUNCTIONS) { $dir } else { \"$(appdir $app $global)\\current\" }",
        "$content = @(",
        "    \"DataDirectory `\"$current_dir\\data`\"\"",
        "    \"GeoIPFile `\"$current_dir\\data\\geoip`\"\"",
        "    \"GeoIPv6File `\"$current_dir\\data\\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",
        "torrc"
    ],
    "checkver": {
        "url": "https://download.torproject.org/tor/",
        "regex": "(?<browser>\\d+(?:\\.\\d+)+)[\\s\\u200F]*\\(tor\\s*(?<tor>\\d+(?:\\.\\d+)+)\\)",
        "replace": "${tor}-${browser}"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://archive.torproject.org/tor-package-archive/torbrowser/$matchBrowser/tor-expert-bundle-windows-x86_64-$matchBrowser.tar.gz"
            },
            "32bit": {
                "url": "https://archive.torproject.org/tor-package-archive/torbrowser/$matchBrowser/tor-expert-bundle-windows-i686-$matchBrowser.tar.gz"
            }
        },
        "hash": {
            "url": "$baseurl/sha256sums-signed-build.txt"
        }
    }
}