{
    "version": "7.1",
    "description": "Practical and minimal image viewer",
    "homepage": "https://interversehq.com/qview/",
    "license": "GPL-3.0-only",
    "notes": [
        "For file associations, run:",
        "reg import \"$dir\\install-associations.reg\""
    ],
    "architecture": {
        "64bit": {
            "url": "https://github.com/jurplel/qView/releases/download/7.1/qView-7.1-win64.zip",
            "hash": "dce9dc09be15c003d5bf4a73971b7e66790c66692db163813b9f266341bcaa25"
        },
        "32bit": {
            "url": "https://github.com/jurplel/qView/releases/download/7.1/qView-7.1-win32.zip",
            "hash": "cefd15e7eed4b1b63c74d2e7da05c012ea006486b51e6c9e5d2ac54ae82432b1"
        }
    },
    "extract_dir": "qView",
    "post_install": [
        "'install-associations', 'uninstall-associations' | ForEach-Object {",
        "    if (Test-Path \"$bucketsdir\\$bucket\\scripts\\qview\\$_.reg\") {",
        "        $qviewPath = \"$dir\".Replace('\\', '\\\\')",
        "        $content = (Get-Content \"$bucketsdir\\$bucket\\scripts\\qview\\$_.reg\").Replace('$qview', $qviewPath)",
        "        if ($global) { $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE') }",
        "        Set-Content \"$dir\\$_.reg\" $content -Encoding Ascii -Force",
        "    }",
        "}"
    ],
    "bin": "qView.exe",
    "shortcuts": [
        [
            "qView.exe",
            "qView"
        ]
    ],
    "uninstaller": {
        "script": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-associations.reg\" }"
    },
    "checkver": {
        "github": "https://github.com/jurplel/qView"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/jurplel/qView/releases/download/$version/qView-$version-win64.zip"
            },
            "32bit": {
                "url": "https://github.com/jurplel/qView/releases/download/$version/qView-$version-win32.zip"
            }
        }
    }
}
