{
    "version": "4.1.7.0",
    "description": "Graphical GREP tool to search across text files, Word and Excel documents, PDFs and archives",
    "homepage": "http://dngrep.github.io/",
    "license": "GPL-3.0-only",
    "architecture": {
        "64bit": {
            "url": "https://github.com/dnGrep/dnGrep/releases/download/v4.1.7.0/dnGREP.4.1.7.x64.msi",
            "hash": "6c334bdcac8e93e54da7e085cfc5493933316ea41b7698b13cdd0862f8cece77"
        },
        "32bit": {
            "url": "https://github.com/dnGrep/dnGrep/releases/download/v4.1.7.0/dnGREP.4.1.7.x86.msi",
            "hash": "dd01a2c513a478aad55abf34bc64f81cd8b54561aa0b8b3dd63a5a254b97f186"
        }
    },
    "pre_install": [
        "$cont = '<?xml version=\"1.0\" encoding=\"utf-8\"?><dictionary version=\"2\"></dictionary>'",
        "if (!(Test-Path \"$persist_dir\\dnGREP.Settings.dat\")) { Set-Content \"$dir\\dnGREP.Settings.dat\" $cont -Encoding 'ascii' }",
        "Copy-Item \"$persist_dir\\Themes\\*\" \"$dir\\Themes\" -ErrorAction 'SilentlyContinue' -Recurse"
    ],
    "extract_dir": "dnGREP",
    "bin": "dnGREP.exe",
    "shortcuts": [
        [
            "dnGREP.exe",
            "dnGREP"
        ]
    ],
    "persist": "dnGREP.Settings.dat",
    "pre_uninstall": "Copy-Item \"$dir\\Themes\\*\" \"$persist_dir\\Themes\" -ErrorAction 'SilentlyContinue' -Recurse",
    "checkver": {
        "github": "https://github.com/dnGrep/dnGrep"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/dnGrep/dnGrep/releases/download/v$version/dnGREP.$matchHead.x64.msi",
                "hash": {
                    "url": "https://github.com/dnGrep/dnGrep/releases/v$version",
                    "regex": "x64.msi[<>/\\w\\n: \\(\\)]+SHA256: ($sha256)"
                }
            },
            "32bit": {
                "url": "https://github.com/dnGrep/dnGrep/releases/download/v$version/dnGREP.$matchHead.x86.msi",
                "hash": {
                    "url": "https://github.com/dnGrep/dnGrep/releases/v$version",
                    "find": "x86.msi[<>/\\w\\n: \\(\\)]+SHA256: ($sha256)"
                }
            }
        }
    }
}
