Code signing
This commit is contained in:
parent
1b29aeff2b
commit
877e10f70e
|
@ -18,6 +18,35 @@ rem Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|||
|
||||
echo on
|
||||
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\notepad++.exe
|
||||
If ErrorLevel 1 goto End
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\SciLexer.dll
|
||||
If ErrorLevel 1 goto End
|
||||
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\NppShell_06.dll
|
||||
If ErrorLevel 1 goto End
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\NppShell64_06.dll
|
||||
If ErrorLevel 1 goto End
|
||||
|
||||
sign them manuelly as they are updated
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\updater\GUP.exe
|
||||
If ErrorLevel 1 goto End
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\updater\gpup.exe
|
||||
If ErrorLevel 1 goto End
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\updater\libcurl.dll
|
||||
If ErrorLevel 1 goto End
|
||||
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\plugins\NppExport.dll
|
||||
If ErrorLevel 1 goto End
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\plugins\mimeTools.dll
|
||||
If ErrorLevel 1 goto End
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\plugins\NppConverter.dll
|
||||
If ErrorLevel 1 goto End
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\plugins\PluginManager.dll
|
||||
If ErrorLevel 1 goto End
|
||||
|
||||
|
||||
|
||||
rmdir /S /Q .\build
|
||||
mkdir .\build
|
||||
|
||||
|
@ -26,27 +55,27 @@ rmdir /S /Q .\minimalist
|
|||
mkdir .\minimalist
|
||||
|
||||
copy /Y ..\bin\license.txt .\minimalist\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\bin\readme.txt .\minimalist\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\bin\change.log .\minimalist\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\src\config.model.xml .\minimalist\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\src\langs.model.xml .\minimalist\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\src\stylers.model.xml .\minimalist\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\src\contextMenu.xml .\minimalist\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\src\shortcuts.xml .\minimalist\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\bin\doLocalConf.xml .\minimalist\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\bin\"notepad++.exe" .\minimalist\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\bin\SciLexer.dll .\minimalist\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
|
||||
|
||||
|
||||
|
@ -64,67 +93,67 @@ mkdir .\zipped.package.release\plugins\doc
|
|||
|
||||
|
||||
copy /Y ..\bin\license.txt .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\bin\readme.txt .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\bin\change.log .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\src\config.model.xml .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\src\langs.model.xml .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\src\stylers.model.xml .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\src\contextMenu.xml .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\src\shortcuts.xml .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\src\functionList.xml .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\bin\doLocalConf.xml .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\bin\"notepad++.exe" .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y ..\bin\SciLexer.dll .\zipped.package.release\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
|
||||
|
||||
rem Plugins
|
||||
copy /Y "..\bin\plugins\NppExport.dll" .\zipped.package.release\plugins\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y "..\bin\plugins\mimeTools.dll" .\zipped.package.release\plugins\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y "..\bin\plugins\NppConverter.dll" .\zipped.package.release\plugins\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
|
||||
rem plugins manager and its updater
|
||||
copy /Y "..\bin\plugins\PluginManager.dll" .\zipped.package.release\plugins\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
copy /Y "..\bin\updater\gpup.exe" .\zipped.package.release\updater\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
|
||||
|
||||
rem localizations
|
||||
copy /Y ".\nativeLang\*.xml" .\zipped.package.release\localization\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
|
||||
rem files API
|
||||
copy /Y ".\APIs\*.xml" .\zipped.package.release\plugins\APIs\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
|
||||
rem theme
|
||||
copy /Y ".\themes\*.xml" .\zipped.package.release\themes\
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
|
||||
|
||||
|
||||
|
||||
"C:\Program Files\7-Zip\7z.exe" a -r .\build\npp.bin.minimalist.7z .\minimalist\*
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
"C:\Program Files\7-Zip\7z.exe" a -tzip -r .\build\npp.bin.zip .\zipped.package.release\*
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
"C:\Program Files\7-Zip\7z.exe" a -r .\build\npp.bin.7z .\zipped.package.release\*
|
||||
If ErrorLevel 1 PAUSE
|
||||
If ErrorLevel 1 goto End
|
||||
IF EXIST "%PROGRAMFILES(X86)%" ("%PROGRAMFILES(x86)%\NSIS\Unicode\makensis.exe" nppSetup.nsi) ELSE ("%PROGRAMFILES%\NSIS\Unicode\makensis.exe" nppSetup.nsi)
|
||||
|
||||
|
||||
|
@ -140,13 +169,15 @@ for %%a in (npp.*.Installer.exe) do (
|
|||
set zipvar=!nppInstallerVar:Installer.exe=bin.zip!
|
||||
set 7zvar=!nppInstallerVar:Installer.exe=bin.7z!
|
||||
set 7zvarMin=!nppInstallerVar:Installer.exe=bin.minimalist.7z!
|
||||
rem set md5var=!nppInstallerVar:Installer.exe=release.md5!
|
||||
)
|
||||
ren npp.bin.zip !zipvar!
|
||||
ren npp.bin.7z !7zvar!
|
||||
ren npp.bin.minimalist.7z !7zvarMin!
|
||||
rem ..\externalTools\md5.exe -o!md5var! !nppInstallerVar! !zipvar! !7zvar!
|
||||
|
||||
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++ Installer" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ !nppInstallerVar!
|
||||
|
||||
cd ..
|
||||
|
||||
endlocal
|
||||
|
||||
:End
|
|
@ -51,7 +51,7 @@ BEGIN
|
|||
VALUE "FileDescription", "Notepad++ : a free (GNU) source code editor\0"
|
||||
VALUE "FileVersion", VERSION_VALUE
|
||||
VALUE "InternalName", "npp.exe\0"
|
||||
VALUE "LegalCopyright", "Copyleft 1998-2015 by Don HO\0"
|
||||
VALUE "LegalCopyright", "Copyleft 1998-2016 by Don HO\0"
|
||||
VALUE "OriginalFilename", "Notepad++.exe\0"
|
||||
VALUE "ProductName", "Notepad++\0"
|
||||
VALUE "ProductVersion", VERSION_VALUE
|
||||
|
|
Loading…
Reference in New Issue