{
    "version": "23.07.24",
    "description": "Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more.",
    "homepage": "https://conemu.github.io/",
    "license": "BSD-3-Clause",
    "url": "https://github.com/Maximus5/ConEmu/releases/download/v23.07.24/ConEmuPack.230724.7z",
    "hash": "2a9b98ebecaede62665ef427b05b3a5ccdac7bd3202414fc0f4c10825b4f4ea2",
    "pre_install": [
        "$xml = \"$dir\\ConEmu\\ConEmu.xml\"",
        "if(!(Test-Path \"$xml\")) {",
        "    # Disable AutoUpdates",
        "    $cont = Get-Content \"$dir\\ConEmu\\ConEmu_Sample.xml\" -Raw",
        "    $keys = @('Update.CheckOnStartup', 'Update.CheckHourly')",
        "    foreach($key in $keys) {",
        "        $find = \"<value name=\"\"$key\"\" type=\"\"hex\"\" data=\"\"\\d+\"\"/>\"",
        "        $replace = \"<value name=\"\"$key\"\" type=\"\"hex\"\" data=\"\"00\"\"/>\"",
        "        $cont = $cont -replace $find, $replace",
        "    }",
        "    Set-Content $xml $cont -Encoding Ascii -Force",
        "}"
    ],
    "architecture": {
        "64bit": {
            "bin": [
                [
                    "ConEmu64.exe",
                    "ConEmu"
                ]
            ],
            "shortcuts": [
                [
                    "ConEmu64.exe",
                    "ConEmu"
                ]
            ]
        },
        "32bit": {
            "bin": "ConEmu.exe",
            "shortcuts": [
                [
                    "ConEmu.exe",
                    "ConEmu"
                ]
            ]
        }
    },
    "persist": "ConEmu\\ConEmu.xml",
    "checkver": {
        "github": "https://github.com/Maximus5/ConEmu"
    },
    "autoupdate": {
        "url": "https://github.com/Maximus5/ConEmu/releases/download/v$version/ConEmuPack.$cleanVersion.7z",
        "hash": {
            "url": "https://www.fosshub.com/ConEmu.html",
            "regex": "(?sm)$basename.*?\"sha256\":\"$sha256\""
        }
    }
}
