{
    "version": "3.1.7",
    "description": "A CLI utility to build and manage a PKI CA",
    "homepage": "https://openvpn.net/easyrsa.html",
    "license": "GPL-2.0-only",
    "architecture": {
        "64bit": {
            "url": "https://github.com/OpenVPN/easy-rsa/releases/download/v3.1.7/EasyRSA-3.1.7-win64.zip",
            "hash": "38107a5d2c50e52ade607a063c6624ad04c1a63898065a1616537275a02989d9"
        },
        "32bit": {
            "url": "https://github.com/OpenVPN/easy-rsa/releases/download/v3.1.7/EasyRSA-3.1.7-win32.zip",
            "hash": "11e02a11cff6e751b657d1e29fd753f3c402bc26a9204e16103070d6f2dd1534"
        }
    },
    "extract_dir": "EasyRSA-3.1.7",
    "post_install": [
        "@\"",
        "setup_path=\"$($dir -replace '\\\\', '/')\"",
        "export EASYRSA=\"`${setup_path}\"",
        "export EASYRSA_PKI=\"`${setup_path}/keys/pki\"",
        "export PATH=\"`${setup_path};`${setup_path}/bin;`${PATH}\"",
        "export HOME=\"`${setup_path}\"",
        "export ENV=\"/disable-env\"",
        "`${setup_path}/easyrsa $*",
        "\"@ | Out-File \"$dir\\easyrsa-wrapper.sh\" -Encoding Ascii",
        "if (!(Test-Path \"$dir\\keys\\pki\")) { easyrsa init-pki }"
    ],
    "bin": [
        [
            "bin\\sh.exe",
            "easyrsa",
            "$dir\\easyrsa-wrapper.sh"
        ]
    ],
    "persist": "keys",
    "checkver": {
        "github": "https://github.com/OpenVPN/easy-rsa"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/OpenVPN/easy-rsa/releases/download/v$version/EasyRSA-$version-win64.zip"
            },
            "32bit": {
                "url": "https://github.com/OpenVPN/easy-rsa/releases/download/v$version/EasyRSA-$version-win32.zip"
            }
        },
        "extract_dir": "EasyRSA-$version"
    }
}
