@@ -27,13 +27,12 @@ REM https://learn.microsoft.com/en-us/windows/msix/package/signing-known-issues
2727set signBinarySha256 = %signtoolWin11% sign /fd SHA256 /tr http://timestamp.acs.microsoft.com /td sha512 /a /f %NPP_CERT% /p %NPP_CERT_PWD% /d " Notepad++" /du https://notepad-plus-plus.org/
2828
2929
30- %signBinary% ..\bin\notepad++.exe
31- If ErrorLevel 1 goto End
32- %signBinary% ..\bin64\notepad++.exe
33- If ErrorLevel 1 goto End
34- %signBinary% ..\binarm64\notepad++.exe
30+ set baseBinaries = ..\bin\notepad++.exe ..\bin64\notepad++.exe ..\binarm64\notepad++.exe ..\bin\plugins\Config\nppPluginList.dll ..\bin64\plugins\Config\nppPluginList.dll ..\binarm64\plugins\Config\nppPluginList.dll ..\bin\updater\GUP.exe ..\bin64\updater\GUP.exe ..\binarm64\updater\GUP.exe ..\bin\updater\libcurl.dll ..\bin64\updater\libcurl.dll ..\binarm64\updater\libcurl.dll ..\bin\plugins\NppExport\NppExport.dll ..\bin64\plugins\NppExport\NppExport.dll ..\binarm64\plugins\NppExport\NppExport.dll ..\bin\plugins\mimeTools\mimeTools.dll ..\bin64\plugins\mimeTools\mimeTools.dll ..\binarm64\plugins\mimeTools\mimeTools.dll ..\bin\plugins\NppConverter\NppConverter.dll ..\bin64\plugins\NppConverter\NppConverter.dll ..\binarm64\plugins\NppConverter\NppConverter.dll
31+
32+ %signBinary% %baseBinaries%
3533If ErrorLevel 1 goto End
3634
35+
3736REM %signBinarySha256% ..\bin\NppShell.x86.dll
3837REM If ErrorLevel 1 goto End
3938REM
@@ -47,47 +46,8 @@ REM If ErrorLevel 1 goto End
4746REM %signBinarySha256% ..\binarm64\NppShell.arm64.dll
4847REM If ErrorLevel 1 goto End
4948
50- %signBinary% ..\bin\plugins\Config\nppPluginList.dll
51- If ErrorLevel 1 goto End
52- %signBinary% ..\bin64\plugins\Config\nppPluginList.dll
53- If ErrorLevel 1 goto End
54- %signBinary% ..\binarm64\plugins\Config\nppPluginList.dll
55- If ErrorLevel 1 goto End
56-
57- %signBinary% ..\bin\updater\GUP.exe
58- If ErrorLevel 1 goto End
59- %signBinary% ..\bin64\updater\GUP.exe
60- If ErrorLevel 1 goto End
61- %signBinary% ..\binarm64\updater\GUP.exe
62- If ErrorLevel 1 goto End
63-
64- %signBinary% ..\bin\updater\libcurl.dll
65- If ErrorLevel 1 goto End
66- %signBinary% ..\bin64\updater\libcurl.dll
67- If ErrorLevel 1 goto End
68- %signBinary% ..\binarm64\updater\libcurl.dll
69- If ErrorLevel 1 goto End
70-
71- %signBinary% ..\bin\plugins\NppExport\NppExport.dll
72- If ErrorLevel 1 goto End
73- %signBinary% ..\bin64\plugins\NppExport\NppExport.dll
74- If ErrorLevel 1 goto End
75- %signBinary% ..\binarm64\plugins\NppExport\NppExport.dll
76- If ErrorLevel 1 goto End
7749
78- %signBinary% ..\bin\plugins\mimeTools\mimeTools.dll
79- If ErrorLevel 1 goto End
80- %signBinary% ..\bin64\plugins\mimeTools\mimeTools.dll
81- If ErrorLevel 1 goto End
82- %signBinary% ..\binarm64\plugins\mimeTools\mimeTools.dll
83- If ErrorLevel 1 goto End
8450
85- %signBinary% ..\bin\plugins\NppConverter\NppConverter.dll
86- If ErrorLevel 1 goto End
87- %signBinary% ..\bin64\plugins\NppConverter\NppConverter.dll
88- If ErrorLevel 1 goto End
89- %signBinary% ..\binarm64\plugins\NppConverter\NppConverter.dll
90- If ErrorLevel 1 goto End
9151
9252:NoSign
9353
@@ -545,6 +505,10 @@ ren npp.portable.minimalist.7z !7zvarMin!
545505ren npp.portable.minimalist.x64.7z !7zvarMin64!
546506ren npp.portable.minimalist.arm64.7z !7zvarMinArm64!
547507
508+ if %SIGN% == 0 goto NoSignInstaller
509+ %signBinary% !nppInstallerVar! !nppInstallerVar64! !nppInstallerVarArm64!
510+
511+ :NoSignInstaller
548512
549513cd ..
550514
0 commit comments