{
    "version": "6.33",
    "description": "A V2Ray client for Windows, support Xray & v2fly core",
    "homepage": "https://github.com/2dust/v2rayN",
    "license": "GPL-3.0-only",
    "depends": "xray",
    "suggest": {
        ".NET Desktop Runtime": "extras/windowsdesktop-runtime-lts",
        "v2fly-core": "v2ray"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/2dust/v2rayN/releases/download/6.33/v2rayN.zip",
            "hash": "7ad0f8a41bda7179cf183005870db1325fc9852a1e09b145355e0a2c285ca8ab"
        },
        "32bit": {
            "url": "https://github.com/2dust/v2rayN/releases/download/6.33/v2rayN-32.zip",
            "hash": "d7d29536d27b586053c3d3eed1c41687adf88535be73825f76af1abb879dc891"
        },
        "arm64": {
            "url": "https://github.com/2dust/v2rayN/releases/download/6.33/v2rayN-arm64.zip",
            "hash": "44ffb07ad51962d85f3e4a24aadab890bdefd6574f35a8deb6e6611c595d9e28"
        }
    },
    "extract_dir": "v2rayN",
    "pre_install": [
        "foreach ($form in @('*.exe', '*.dat')) {",
        "    foreach ($_ in Get-ChildItem \"$(appdir xray $global)\\current\" -File) {",
        "        $name = $_.Name",
        "        if ($name -Like $form) {",
        "            Write-Host \"Creating hardlink for $name\"",
        "            New-Item -ItemType HardLink -Path \"$dir\\bin\\Xray\" -Name $name -Target \"$(appdir xray $global)\\current\\$name\" | Out-Null",
        "        }",
        "    }",
        "}"
    ],
    "bin": "v2rayN.exe",
    "shortcuts": [
        [
            "v2rayN.exe",
            "v2rayN"
        ]
    ],
    "persist": "guiConfigs",
    "checkver": "github",
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/2dust/v2rayN/releases/download/$version/v2rayN.zip"
            },
            "32bit": {
                "url": "https://github.com/2dust/v2rayN/releases/download/$version/v2rayN-32.zip"
            },
            "arm64": {
                "url": "https://github.com/2dust/v2rayN/releases/download/$version/v2rayN-arm64.zip"
            }
        }
    }
}
