{
    "version": "6.12",
    "description": "GUI hash tool",
    "homepage": "https://compressme.net",
    "license": "Freeware",
    "notes": "Language packs for Czech, French, German, Italian, and Simplified Chinese are available at http://compressme.net",
    "architecture": {
        "64bit": {
            "url": "https://compressme.net/chk612.zip",
            "hash": "17bdd07cb1cd9b4dff5bf1ce7edc3b6b157e539216eed09a8f3e40cff423e815"
        }
    },
    "pre_install": [
        "Set-Content \"$dir\\chk.ps1\" -Value 'Start-Process \"$PSScriptRoot\\chk.exe\" -WorkingDirectory $PSScriptRoot' -Encoding 'Ascii'",
        "if (!(Test-Path \"$persist_dir\\chk.cfg\")) { New-Item \"$dir\\chk.cfg\" | Out-Null }",
        "if (!(Test-Path \"$persist_dir\\lang.txt\")) { New-Item \"$dir\\lang.txt\" | Out-Null }"
    ],
    "uninstaller": {
        "script": "if ((Get-Item \"$dir\\lang.txt\").LinkType -ne 'HardLink') { Move-Item \"$dir\\lang.txt\" \"$persist_dir\" -Force | Out-Null }"
    },
    "bin": "chk.ps1",
    "shortcuts": [
        [
            "chk.exe",
            "CHK"
        ]
    ],
    "persist": [
        "chk.cfg",
        "lang.txt"
    ],
    "checkver": "CHK\\s+v([\\d.]+)\\s+Win",
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://compressme.net/chk$cleanVersion.zip"
            }
        }
    }
}
