{
    "version": "26.03r6058",
    "description": "Light-weight Scintilla based text editor for Windows",
    "homepage": "https://github.com/zufuliu/notepad4",
    "license": "BSD-3-Clause",
    "architecture": {
        "64bit": {
            "url": "https://github.com/zufuliu/notepad4/releases/download/v26.03r6058/Notepad4_HD_i18n_x64_v26.03r6058.zip",
            "hash": "009f0fae987f56b3931dc65f68c55743449eb73c6452b92b2f3b4c5e6d1f93e6"
        },
        "32bit": {
            "url": "https://github.com/zufuliu/notepad4/releases/download/v26.03r6058/Notepad4_i18n_Win32_v26.03r6058.zip",
            "hash": "218552d3a150c2e54aa187d382ad4d992cd956fba2e0df7bc08ee21e5d78e090"
        },
        "arm64": {
            "url": "https://github.com/zufuliu/notepad4/releases/download/v26.03r6058/Notepad4_HD_i18n_ARM64_v26.03r6058.zip",
            "hash": "604b25f4a47d0f1ae84392c9a57701ac118e97d020e867b597890c89200e2be6"
        }
    },
    "bin": "notepad4.exe",
    "shortcuts": [
        [
            "Notepad4.exe",
            "Notepad4"
        ],
        [
            "matepath.exe",
            "matepath"
        ]
    ],
    "pre_install": [
        "'Notepad4.ini', 'matepath.ini', 'Notepad4 DarkTheme.ini' | ForEach-Object {",
        "    $persistPath = Join-Path $persist_dir $_",
        "    $defaultPath = Join-Path $dir \"$_-default\"",
        "    $targetPath = Join-Path $dir $_",
        "    if (Test-Path -LiteralPath $persistPath -PathType Container) {",
        "        Remove-Item -LiteralPath $persistPath -Recurse -Force",
        "    }",
        "    if (-not (Test-Path -LiteralPath $persistPath -PathType Leaf) -and (Test-Path -LiteralPath $defaultPath -PathType Leaf)) {",
        "        Copy-Item -LiteralPath $defaultPath -Destination $targetPath",
        "    }",
        "}"
    ],
    "persist": [
        "Notepad4.ini",
        "matepath.ini",
        "Notepad4 DarkTheme.ini"
    ],
    "checkver": {
        "github": "https://github.com/zufuliu/notepad2",
        "regex": "([\\d.]+r\\d+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/zufuliu/notepad4/releases/download/v$version/Notepad4_HD_i18n_x64_v$version.zip"
            },
            "32bit": {
                "url": "https://github.com/zufuliu/notepad4/releases/download/v$version/Notepad4_i18n_Win32_v$version.zip"
            },
            "arm64": {
                "url": "https://github.com/zufuliu/notepad4/releases/download/v$version/Notepad4_HD_i18n_ARM64_v$version.zip"
            }
        }
    }
}
