Skip to content

Add NppNodeJS to the plugin list - #1215

Merged
chcg merged 3 commits into
notepad-plus-plus:masterfrom
seantw:add-nppnodejs
Oct 9, 2026
Merged

chcg merged 3 commits into
notepad-plus-plus:masterfrom
seantw:add-nppnodejs

Conversation

@seantw

@seantw seantw commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Add the 64-bit NppNodeJS v1.0.1 package to the Notepad++ Plugin List.
It lets you customize script menus and run Node.js scripts from those menus.
image

Add the 64-bit NppNodeJS v1.0.1 package to the Notepad++ Plugin List.
@rdipardo

rdipardo commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@seantw

The build failure message was:

NppNodeJS
{'category': 'error',
'details': '',
'message': 'NppNodeJS: Does not contain any version information.'}

You need to add a resource file containing version information about your plugin; a numeric file version at the very mininmm.

  • Copy and save this content to your src folder as resource.rc:
#include <winres.h>

#define NPP_NODEJS_FILE_VERSION "1.0.1.0\0"
#define NPP_NODEJS_FILE_VERSION_WORDS 1, 0, 1, 0

VS_VERSION_INFO VERSIONINFO
 FILEVERSION NPP_NODEJS_FILE_VERSION_WORDS
 PRODUCTVERSION NPP_NODEJS_FILE_VERSION_WORDS
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS VOS_NT_WINDOWS32
 FILETYPE VFT_DLL
 FILESUBTYPE VFT2_UNKNOWN
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
        BEGIN
            VALUE "CompanyName", "<add your name>\0"
            VALUE "FileDescription", "<add a dscription>\0"
            VALUE "FileVersion", NPP_NODEJS_FILE_VERSION
            VALUE "InternalName", "NppNodeJS\0"
            VALUE "LegalCopyright", "Copyright (c) 2026 <your name>\0"
            VALUE "OriginalFilename", "NppNodeJS.dll\0"
            VALUE "ProductName", "NppNodeJS\0"
            VALUE "ProductVersion", NPP_NODEJS_FILE_VERSION
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x0409, 1200
    END
END
  • Edit the personal details as you like

Note

Remember to change the version number before a new release!

diff --git a/build-x64.bat b/build-x64.bat
index cfd6f9d..2ee3a8e 100644
--- a/build-x64.bat
+++ b/build-x64.bat
@@ -26,6 +26,7 @@ g++ -m64 -std=c++17 -O2 -shared -static -static-libgcc -static-libstdc++ ^
   -DNPPNODEJS_DEBUG_DEFAULT=%DEBUG% ^
   -Isrc -Ithird_party ^
   src/main.cpp third_party/cJSON.c ^
+  src/resource.rc ^
   -o build/NppNodeJS.dll ^
   -luser32 -lgdi32 -lkernel32 -lcomdlg32 -lshell32
 

seantw added 2 commits October 9, 2026 23:25
Update the NppNodeJS package hash to match the v1.0.1 release ZIP containing DLL version information required by the Plugin List validator.
@chcg chcg added this to the 1.9.10 milestone Oct 9, 2026
@chcg
chcg merged commit 993bdf8 into notepad-plus-plus:master Oct 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants