{
    "##": "Rename from zip to 7z is needed due to 'unsupported compression method' error.",
    "version": "4.9.2",
    "description": "An Internet censorship circumventing tunnel tool, forked by Breakwa11 from shadowsocks, maintained now by Akariiin",
    "homepage": "https://github.com/shadowsocksrr/shadowsocksr-csharp",
    "license": "GPL-3.0-only",
    "url": "https://github.com/shadowsocksrr/shadowsocksr-csharp/releases/download/4.9.2/ShadowsocksR-win-4.9.2.zip#/dl.7z",
    "hash": "e3f6860aeff0f45db52f74c0060a657d59c2436ccfcba3ed534e1e01ad5212d3",
    "extract_dir": "ShadowsocksR-win-4.9.2",
    "bin": [
        "ShadowsocksR-dotnet4.0.exe",
        "ShadowsocksR-dotnet2.0.exe",
        [
            "ShadowsocksR-dotnet4.0.exe",
            "ShadowsocksR"
        ]
    ],
    "shortcuts": [
        [
            "ShadowsocksR-dotnet4.0.exe",
            "ShadowsocksR .Net 4.0"
        ],
        [
            "ShadowsocksR-dotnet2.0.exe",
            "ShadowsocksR .Net 2.0"
        ]
    ],
    "pre_install": [
        "   #Create placeholder files",
        "function CreateFile([String] $file, [String] $content = $null) {",
        "    if(!(Test-Path \"$persist_dir\\$file\")) {",
        "        Write-Host \"Create placeholder for shadowsocksr-csharp: $file\"",
        "        New-Item -Force -Path \"$persist_dir\\$file\" -ItemType file -Value $content | Out-Null",
        "    }",
        "}",
        "CreateFile 'gui-config.json' '{}'",
        "CreateFile 'pac.txt'",
        "CreateFile 'transfer_log.json' '{}'",
        "CreateFile 'user-rule.txt'"
    ],
    "persist": [
        "gui-config.json",
        "pac.txt",
        "transfer_log.json",
        "user-rule.txt",
        "temp"
    ],
    "checkver": "github",
    "autoupdate": {
        "url": "https://github.com/shadowsocksrr/shadowsocksr-csharp/releases/download/$version/ShadowsocksR-win-$version.zip#/dl.7z",
        "extract_dir": "ShadowsocksR-win-$version"
    }
}
