{
    "version": "3.2.6",
    "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.2.6/EasyRSA-3.2.6-win64.zip",
            "hash": "1629b6f1cd4b866d311910b35a570493f8d52e5cb031f93776c199a14ca4c96d"
        },
        "32bit": {
            "url": "https://github.com/OpenVPN/easy-rsa/releases/download/v3.2.6/EasyRSA-3.2.6-win32.zip",
            "hash": "b0ab77b70cdbf511e2e34777f4e82a263cc3850ba7dd557c016f809b4703ec65"
        }
    },
    "extract_dir": "EasyRSA-3.2.6",
    "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"
    }
}
