{
    "version": "1.13.2",
    "description": "Free end-to-end encrypted cloud storage made by Proton.",
    "homepage": "https://proton.me/drive",
    "license": "GPL-3.0-only",
    "architecture": {
        "64bit": {
            "url": "https://proton.me/download/drive/windows/1.13.2/x64/Proton%20Drive%20Setup%201.13.2.exe",
            "hash": "757010134a0a294c83812185e3ec993e6d9bfdbf3a26363389e260f31ef22927"
        },
        "arm64": {
            "url": "https://proton.me/download/drive/windows/1.13.2/arm64/Proton%20Drive%20Setup%201.13.2.exe",
            "hash": "8822d381aa32eaa4113c0e7a2fb08e2eca391333c5d4695d72705b0e23591c4b"
        }
    },
    "pre_install": [
        "Expand-DarkArchive -Path \"$dir\\$fname\" -DestinationPath \"$dir\\tmp\" -Removal",
        "$msi = Get-ChildItem \"$dir\\tmp\\AttachedContainer\\*.msi\" | Select-Object -First 1 -ExpandProperty FullName",
        "Expand-MsiArchive $msi -ExtractDir 'PFiles64\\Proton\\Drive' -DestinationPath \"$dir\"",
        "Remove-Item \"$dir\\tmp\" -Recurse -Force"
    ],
    "shortcuts": [
        [
            "ProtonDrive.exe",
            "Proton\\Proton Drive"
        ]
    ],
    "checkver": {
        "url": "https://proton.me/download/drive/windows/version.json",
        "jsonpath": "$.Releases[?(@.CategoryName == 'Stable')].Version"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://proton.me/download/drive/windows/$version/x64/Proton%20Drive%20Setup%20$version.exe"
            },
            "arm64": {
                "url": "https://proton.me/download/drive/windows/$version/arm64/Proton%20Drive%20Setup%20$version.exe"
            }
        }
    }
}
