{
    "version": "1.0.0",
    "description": "Hekasoft Backup & Restore provides a reliable solution for backing up, restoring, and migrating browser profiles. It also allows you to optimize profile data by removing unnecessary files.",
    "homepage": "https://hekasoft.com/hekasoft-backup-restore/",
    "license": {
        "identifier": "Freeware",
        "url": "https://hekasoft.com/eula/"
    },
    "architecture": {
        "64bit": {
            "url": "https://hekasoft.com/hbr-portable.zip",
            "hash": "a91f2ae5af62eb6029118b098d0a90ef4cf055eea4bcab8ede197686ee1766a1"
        }
    },
    "pre_install": [
        "# Use a script to extract files since the extract_dir changes frequently.",
        "$items = Get-ChildItem -Path $dir | Select-Object -First 3",
        "if ($items.Count -eq 1 -and $items.PSIsContainer) {",
        "    $inner_dir = $items | ForEach-Object -MemberName FullName",
        "    Move-Item -Path \"$inner_dir\\*\" -Destination $dir -Force",
        "    Remove-Item -Path $inner_dir -Recurse -Force -ErrorAction SilentlyContinue",
        "}"
    ],
    "shortcuts": [
        [
            "hbr.exe",
            "Hekasoft Backup and Restore"
        ]
    ],
    "checkver": {
        "url": "https://hekasoft.com/hekasoft-backup-restore/",
        "regex": "Current Version.+?([\\d.]+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://hekasoft.com/hbr-portable.zip"
            }
        }
    }
}
