{
    "version": "3.24.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.24.2/Bridge-Installer.exe#/dl.exe",
            "hash": "08e7fca9974be1bfa6272d84239087aaa483618299557456ea8f145b8aa76010"
        }
    },
    "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"
            }
        }
    }
}
