{ "version": "8.9.9.1", "description": "A free source code editor and Notepad replacement that supports several languages.", "homepage": "https://notepad-plus-plus.org", "license": "GPL-3.0-or-later", "notes": "Add Notepad++ as a context menu option by running: reg import \"$dir\\install-context.reg\"", "architecture": { "64bit": { "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.9.9.1/npp.8.9.9.1.portable.x64.zip", "hash": "cbcefa34677e10fe6dd19802f7d6b3b9860cd6de62afeaae7680e09c51b47779" }, "32bit": { "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.9.9.1/npp.8.9.9.1.portable.zip", "hash": "7b48fceec762e80c2bc781a59739403f7af8b6136ed0ffc369a2680c535ab78a" }, "arm64": { "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.9.9.1/npp.8.9.9.1.portable.arm64.zip", "hash": "de0c5d1f15ccbdeac05421e1c282cb3d7e2da97bac674efa576d8ace04a5f20b" } }, "pre_install": [ "'config.xml', 'nativeLang.xml', 'session.xml', 'shortcuts.xml', 'userDefineLang.xml' | ForEach-Object {", " # If present from previous installs, removing incorrectly created folders from the persist dir", " if ((Test-Path -Path \"$persist_dir\\$_\" -PathType Container)) { Remove-Item \"$persist_dir\\$_\" -Recurse -Force }", " if (!(Test-Path \"$persist_dir\\$_\")) { New-Item \"$dir\\$_\" -ItemType File | Out-Null }", "}", "if (!(Test-Path \"$persist_dir\\stylers.xml\")) { Copy-Item \"$dir\\stylers.model.xml\" \"$dir\\stylers.xml\" }" ], "post_install": [ "'install-context', 'uninstall-context' | ForEach-Object {", " if (Test-Path \"$bucketsdir\\extras\\scripts\\notepadplusplus\\$_.reg\") {", " $nppPath = \"$dir\\notepad++.exe\".Replace('\\', '\\\\')", " $content = (Get-Content \"$bucketsdir\\extras\\scripts\\notepadplusplus\\$_.reg\").Replace('$npp', $nppPath)", " if ($global) { $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE') }", " Set-Content \"$dir\\$_.reg\" $content -Encoding Ascii -Force", " }", "}", "# Update shipped plugins", "if (Test-Path \"$dir\\plugins.original\") {", " Copy-Item -Recurse \"$dir\\plugins.original\\*\" \"$dir\\plugins\\\" -Force", "}" ], "uninstaller": { "script": [ "if ($cmd -eq 'uninstall') {", " reg import \"$dir\\uninstall-context.reg\"", "}" ] }, "bin": "notepad++.exe", "shortcuts": [ [ "notepad++.exe", "Notepad++" ] ], "persist": [ "backup", "cloud", "plugins", "themes", "userDefineLangs", "config.xml", "nativeLang.xml", "session.xml", "shortcuts.xml", "stylers.xml", "userDefineLang.xml" ], "checkver": { "github": "https://github.com/notepad-plus-plus/notepad-plus-plus" }, "autoupdate": { "architecture": { "64bit": { "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v$version/npp.$version.portable.x64.zip" }, "32bit": { "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v$version/npp.$version.portable.zip" }, "arm64": { "url": "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v$version/npp.$version.portable.arm64.zip" } }, "hash": { "url": "$baseurl/npp.$version.checksums.sha256" } } }