{
    "version": "2026.3.1",
    "description": "Password management solutions for individuals, teams, and business organizations",
    "homepage": "https://bitwarden.com",
    "license": "GPL-3.0-or-later",
    "url": "https://github.com/bitwarden/clients/releases/download/desktop-v2026.3.1/Bitwarden-Portable-2026.3.1.exe",
    "hash": "28adb7011203385d90ce1d82b47d0bf3aaff7f4e5807166a6e539cf6aefe6453",
    "pre_install": [
        "Rename-Item \"$dir\\Bitwarden-Portable-$version.exe\" 'Bitwarden.exe'",
        "# copy config from non-portable version",
        "if (!(Test-Path \"$dir\\bitwarden-appdata\\*\") -and (Test-Path \"$env:Appdata\\Bitwarden\")) {",
        "    if (!(Test-Path \"$dir\\bitwarden-appdata\")) { New-Item \"$dir\\bitwarden-appdata\" -ItemType Directory | Out-Null }",
        "    Copy-Item \"$env:Appdata\\Bitwarden\\*\" \"$dir\\bitwarden-appdata\\\" -Recurse -Force",
        "}"
    ],
    "bin": "Bitwarden.exe",
    "shortcuts": [
        [
            "Bitwarden.exe",
            "Bitwarden"
        ]
    ],
    "persist": "bitwarden-appdata",
    "checkver": {
        "github": "https://api.github.com/repos/bitwarden/clients/releases",
        "regex": "tag/desktop-v([\\d.]+)"
    },
    "autoupdate": {
        "url": "https://github.com/bitwarden/clients/releases/download/desktop-v$version/Bitwarden-Portable-$version.exe"
    }
}
