{
    "version": "0.26.1",
    "description": "A cat(1) clone with syntax highlighting and Git integration",
    "homepage": "https://github.com/sharkdp/bat",
    "license": "Apache-2.0",
    "suggest": {
        "vcredist": "extras/vcredist2022",
        "less": "less"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/sharkdp/bat/releases/download/v0.26.1/bat-v0.26.1-x86_64-pc-windows-msvc.zip",
            "hash": "0f729b4b6f5f28d395c641eacc2e9ff68d0096b85aa0eec344aa62425144b69b",
            "extract_dir": "bat-v0.26.1-x86_64-pc-windows-msvc"
        },
        "32bit": {
            "url": "https://github.com/sharkdp/bat/releases/download/v0.26.1/bat-v0.26.1-i686-pc-windows-msvc.zip",
            "hash": "07fcab3b17e146878179553c115beb4878835a30b0e5d046457015a5b8f6e7ed",
            "extract_dir": "bat-v0.26.1-i686-pc-windows-msvc"
        },
        "arm64": {
            "url": "https://github.com/sharkdp/bat/releases/download/v0.26.1/bat-v0.26.1-aarch64-pc-windows-msvc.zip",
            "hash": "af07dd1939e99f7f5892d197fc5653cb8cb6c5999552731135ad156eca7e38a5",
            "extract_dir": "bat-v0.26.1-aarch64-pc-windows-msvc"
        }
    },
    "pre_install": [
        "if (!(Test-Path \"$persist_dir\\config\")) {",
        "    Copy-Item -ErrorAction Ignore \"$env:APPDATA\\bat\\config\" \"$dir\\config\"",
        "    New-Item -ErrorAction Ignore \"$dir\\config\" | Out-Null",
        "}",
        "'syntaxes', 'themes' | ForEach-Object {",
        "    if (!(Test-Path \"$persist_dir\\$_\")) {",
        "        Copy-Item -ErrorAction Ignore -Recurse \"$env:APPDATA\\bat\\$_\" \"$dir\\$_\"",
        "    }",
        "}"
    ],
    "env_set": {
        "BAT_CONFIG_DIR": "$dir"
    },
    "persist": [
        "config",
        "syntaxes",
        "themes"
    ],
    "bin": "bat.exe",
    "checkver": "github",
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/sharkdp/bat/releases/download/v$version/bat-v$version-x86_64-pc-windows-msvc.zip",
                "extract_dir": "bat-v$version-x86_64-pc-windows-msvc"
            },
            "32bit": {
                "url": "https://github.com/sharkdp/bat/releases/download/v$version/bat-v$version-i686-pc-windows-msvc.zip",
                "extract_dir": "bat-v$version-i686-pc-windows-msvc"
            },
            "arm64": {
                "url": "https://github.com/sharkdp/bat/releases/download/v$version/bat-v$version-aarch64-pc-windows-msvc.zip",
                "extract_dir": "bat-v$version-aarch64-pc-windows-msvc"
            }
        }
    }
}
