{
    "version": "6.11.21.2311",
    "description": "A cross-platform password management app to securely store passwords and other credentials in a virtual vault locked with a master password.",
    "homepage": "https://www.enpass.io",
    "license": {
        "identifier": "Proprietary",
        "url": "https://www.enpass.io/legal/"
    },
    "url": "https://dl.enpass.io/stable/windows/setup/6.11.21.2311/Enpass-setup.exe",
    "hash": "d932545f336f3e178f86c66d32784be5f091021e47772f0b7c83a9e63405ce8e",
    "installer": {
        "script": [
            "Expand-DarkArchive \"$dir\\$fname\" \"$dir\\tmp\" -Removal",
            "Expand-MsiArchive \"$dir\\tmp\\AttachedContainer\\Enpass.msi\" \"$dir\" -ExtractDir 'PFiles\\Enpass'",
            "Remove-Item \"$dir\\tmp\" -Recurse"
        ]
    },
    "post_install": [
        "$cmd = '\"' + \"$(appdir enpass $global)\\current\\Enpass.exe\" + '\" \"%1\"'",
        "$parent = \"HKCU:Software\\Classes\"",
        "",
        "foreach ($urlh in @('enpass', 'enpassauth', 'enpasscard', 'enpassstart')) {",
        "    $RKey = \"$parent\\$urlh\"",
        "    New-Item $RKey -Force | Out-Null",
        "    Set-Item $RKey \"URL:$urlh Protocol\" -Force | Out-Null",
        "    New-ItemProperty $RKey 'URL Protocol' -Force | Out-Null",
        "    New-Item \"$RKey\\shell\\open\\command\" -Force | Out-Null",
        "    Set-Item \"$RKey\\shell\\open\\command\" $cmd -Force | Out-Null",
        "}"
    ],
    "uninstaller": {
        "script": "@('enpass', 'enpassauth', 'enpasscard', 'enpassstart') | ForEach-Object { Remove-Item \"HKCU:Software\\Classes\\$_\" -Force -Recurse -ErrorAction Ignore }"
    },
    "bin": "Enpass.exe",
    "shortcuts": [
        [
            "Enpass.exe",
            "Enpass"
        ]
    ],
    "checkver": {
        "url": "https://www.enpass.io/release-notes/windows-pc/",
        "regex": ">Version (?<ver>[\\d.]+) ?\\((?<build>[\\d]+)\\)<",
        "replace": "${ver}.${build}"
    },
    "autoupdate": {
        "url": "https://dl.enpass.io/stable/windows/setup/$version/Enpass-setup.exe"
    }
}
