{
    "version": "6.23.203.2",
    "description": "Notepad-like text editor based on the Scintilla source code",
    "homepage": "https://www.rizonesoft.com/downloads/notepad3/",
    "license": "BSD-3-Clause",
    "notes": [
        "To add Notepad3 to right-click context menu, run:",
        "reg import \"$dir\\install-context.reg\""
    ],
    "architecture": {
        "64bit": {
            "url": "https://github.com/rizonesoft/Notepad3/releases/download/RELEASE_6.23.203.2/Notepad3_6.23.203.2_x64_Portable.zip",
            "hash": "0f82530845271643ae78ccbdb3f1e70723f715e5443ac7bfffa04ca28ae7fb48"
        },
        "32bit": {
            "url": "https://github.com/rizonesoft/Notepad3/releases/download/RELEASE_6.23.203.2/Notepad3_6.23.203.2_x86_Portable.zip",
            "hash": "722682c06c94c9e0af23b1cbd3b9d4b8aceacdf337243850a6ddfa4a2ac3eee2"
        }
    },
    "post_install": [
        "$appdir = \"$dir\\Notepad3.exe\".Replace('\\', '\\\\')",
        "'install-context.reg', 'uninstall-context.reg' | ForEach-Object {",
        "    if (Test-Path \"$bucketsdir\\extras\\scripts\\$app\\$_\") {",
        "        $content = Get-Content \"$bucketsdir\\extras\\scripts\\$app\\$_\"",
        "        $content = $content.Replace('$appdir', $appdir)",
        "        if ($global) {",
        "            $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
        "        }",
        "    }",
        "    $content | Set-Content -Path \"$dir\\$_\" -Encoding ascii",
        "}"
    ],
    "uninstaller": {
        "script": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" }"
    },
    "bin": [
        "Notepad3.exe",
        "minipath.exe"
    ],
    "shortcuts": [
        [
            "Notepad3.exe",
            "Notepad3"
        ],
        [
            "minipath.exe",
            "minipath"
        ]
    ],
    "persist": [
        "Favorites",
        "Themes",
        "minipath.ini",
        "Notepad3.ini"
    ],
    "checkver": {
        "url": "https://github.com/rizonesoft/Notepad3/releases",
        "regex": "tag/RELEASE_([\\d.]+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/rizonesoft/Notepad3/releases/download/RELEASE_$version/Notepad3_$version_x64_Portable.zip"
            },
            "32bit": {
                "url": "https://github.com/rizonesoft/Notepad3/releases/download/RELEASE_$version/Notepad3_$version_x86_Portable.zip"
            }
        }
    }
}
