{
    "version": "7.26.426.1",
    "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_7.26.426.1/Notepad3_7.26.426.1_x64_Portable.zip",
            "hash": "6270dc551f82a0a40998ebe0129c5379146691d2cb7d207111a9e229212ceaca"
        },
        "32bit": {
            "url": "https://github.com/rizonesoft/Notepad3/releases/download/RELEASE_7.26.426.1/Notepad3_7.26.426.1_x86_Portable.zip",
            "hash": "08f7e7fcd3fb34e0d90052c408f5ff6cac4e030d1d9ad4451e35ed21e237a3e8"
        }
    },
    "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",
        "np3encrypt.exe"
    ],
    "shortcuts": [
        [
            "Notepad3.exe",
            "Notepad3"
        ],
        [
            "minipath.exe",
            "minipath"
        ]
    ],
    "persist": [
        "Favorites",
        "Themes",
        "minipath.ini",
        "Notepad3.ini"
    ],
    "checkver": {
        "github": "https://github.com/rizonesoft/Notepad3",
        "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"
            }
        }
    }
}
