{
    "version": "3.8.2",
    "description": "Bridge app that allows to users to use their preferred desktop mail client (e.g. Microsoft Outlook, Apple Mail, Mozilla Thunderbird), while benefiting from Proton Mail’s end-to-end encryption.",
    "homepage": "https://proton.me/mail/bridge",
    "license": "GPL-3.0-only",
    "architecture": {
        "64bit": {
            "url": "https://github.com/ProtonMail/proton-bridge/releases/download/v3.8.2/Bridge-Installer.exe#/dl.exe",
            "hash": "e005a92f8716b70d5ac31f49bdca88780c3a95e32132bc594ec80e90ce66d45c"
        }
    },
    "pre_install": [
        "Invoke-ExternalCommand \"$dir\\dl.exe\" -ArgumentList ('/extract') | Out-Null",
        "Expand-MsiArchive \"$dir\\Bridge-Installer.msi\" \"$dir\" | Out-Null",
        "if (get_config USE_LESSMSI $false) {",
        "    Move-Item \"$dir\\APPDIR\\*\" \"$dir\\\"",
        "    Remove-Item \"$dir\\APPDIR\"",
        "}",
        "Remove-Item \"$dir\\dl.exe\", \"$dir\\Bridge-Installer.msi\", \"$dir\\Bridge-Installer.aiui\", \"$dir\\Bridge-Installer*.cab\" -Force -Recurse"
    ],
    "pre_uninstall": "Stop-Process -Name 'proton-bridge' -ErrorAction SilentlyContinue",
    "shortcuts": [
        [
            "proton-bridge.exe",
            "ProtonMail Bridge"
        ]
    ],
    "checkver": {
        "github": "https://github.com/ProtonMail/proton-bridge"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/ProtonMail/proton-bridge/releases/download/v$version/Bridge-Installer.exe#/dl.exe"
            }
        }
    }
}
