{
    "version": "4.7.25.0",
    "description": "Graphical GREP tool to search across text files, Word and Excel documents, PDFs and archives",
    "homepage": "https://dngrep.github.io/",
    "license": "GPL-3.0-only",
    "architecture": {
        "64bit": {
            "url": "https://github.com/dnGrep/dnGrep/releases/download/v4.7.25.0/dnGREP.4.7.25.x64.msi",
            "hash": "2af708fcecbd7a9a4799de92d2bf321735be9a771879a9582f69250e25fbe579",
            "extract_dir": "PFiles64\\dnGrep"
        },
        "32bit": {
            "url": "https://github.com/dnGrep/dnGrep/releases/download/v4.7.25.0/dnGREP.4.7.25.x86.msi",
            "hash": "74348f9cc7c6cb965133c073e046182a0472a305cd465f29b19b4b5f0bd02aae",
            "extract_dir": "PFiles\\dnGrep"
        },
        "arm64": {
            "url": "https://github.com/dnGrep/dnGrep/releases/download/v4.7.25.0/dnGREP.4.7.25.ARM64.msi",
            "hash": "32ecdab72379da49f0f83bdbc06ec691645fa5071f3cc07493fe739b359cefdf",
            "extract_dir": "PFiles64\\dnGrep"
        }
    },
    "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"
    ],
    "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"
            },
            "32bit": {
                "url": "https://github.com/dnGrep/dnGrep/releases/download/v$version/dnGREP.$matchHead.x86.msi"
            },
            "arm64": {
                "url": "https://github.com/dnGrep/dnGrep/releases/download/v$version/dnGREP.$matchHead.ARM64.msi"
            }
        }
    }
}
