2009-12-18 00:33:39 +01:00
echo off
rem this file is part of installer for Notepad++
rem Copyright (C)2006 Don HO <don.h@free.fr>
rem
rem This program is free software; you can redistribute it and/or
rem modify it under the terms of the GNU General Public License
rem as published by the Free Software Foundation; either
rem version 2 of the License, or (at your option) any later version.
rem
rem This program is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
rem GNU General Public License for more details.
rem
rem You should have received a copy of the GNU General Public License
rem along with this program; if not, write to the Free Software
rem Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2009-04-28 01:17:51 +02:00
2009-12-18 00:33:39 +01:00
echo on
2018-05-20 03:05:06 +02:00
2018-11-13 02:31:46 +01:00
if %SIGN% == 0 goto NoSign
2018-05-20 03:05:06 +02:00
2016-02-20 15:26:40 +01:00
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
2016-09-21 20:55:10 +02:00
If ErrorLevel 1 goto End
2016-07-12 09:19:56 +02:00
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d " Notepad++ " /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin64\notepad++.exe
2016-02-20 15:26:40 +01:00
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
2016-09-21 20:55:10 +02:00
If ErrorLevel 1 goto End
2016-07-12 09:19:56 +02:00
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d " Notepad++ " /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin64\SciLexer.dll
2016-02-20 15:26:40 +01:00
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
2018-11-06 13:31:20 +01:00
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d " Notepad++ " /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin\nppPluginList.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/ ..\bin64\nppPluginList.dll
If ErrorLevel 1 goto End
2016-02-20 15:26:40 +01:00
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
2016-09-21 20:55:10 +02:00
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d " Notepad++ " /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin64\updater\GUP.exe
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2016-09-21 20:55:10 +02:00
2016-02-20 15:26:40 +01:00
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
2016-09-21 20:55:10 +02:00
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d " Notepad++ " /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin64\updater\libcurl.dll
If ErrorLevel 1 goto End
2018-04-30 19:36:15 +02:00
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\NppExport.dll
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2018-04-30 19:36:15 +02:00
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\mimeTools.dll
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d " Notepad++ " /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin64\plugins\mimeTools\mimeTools.dll
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2018-04-30 19:36:15 +02:00
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\NppConverter.dll
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d " Notepad++ " /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin64\plugins\NppConverter\NppConverter.dll
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2016-07-12 09:19:56 +02:00
: NoSign
2016-02-20 15:26:40 +01:00
2011-05-31 02:04:49 +02:00
rmdir /S /Q .\build
2011-05-30 20:12:31 +02:00
mkdir .\build
2009-07-14 21:45:06 +02:00
2010-12-18 14:49:39 +01:00
rem Notepad++ minimalist package
2011-05-31 02:04:49 +02:00
rmdir /S /Q .\minimalist
2011-05-30 20:12:31 +02:00
mkdir .\minimalist
2019-03-03 03:12:27 +01:00
mkdir .\minimalist\userDefineLangs
2011-05-30 20:12:31 +02:00
2010-12-18 14:49:39 +01:00
copy /Y ..\bin\license.txt .\minimalist\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2010-12-18 14:49:39 +01:00
copy /Y ..\bin\readme.txt .\minimalist\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2010-12-18 14:49:39 +01:00
copy /Y ..\bin\change.log .\minimalist\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2019-03-03 03:12:27 +01:00
copy /Y " ..\bin\userDefineLangs\userDefinedLang-markdown.default.modern.xml " .\minimalist\userDefineLangs\
If ErrorLevel 1 goto End
2010-12-18 14:49:39 +01:00
copy /Y ..\src\langs.model.xml .\minimalist\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2010-12-18 14:49:39 +01:00
copy /Y ..\src\stylers.model.xml .\minimalist\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2010-12-18 14:49:39 +01:00
copy /Y ..\src\contextMenu.xml .\minimalist\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2010-12-18 14:49:39 +01:00
copy /Y ..\src\shortcuts.xml .\minimalist\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2010-12-18 14:49:39 +01:00
copy /Y ..\bin\doLocalConf.xml .\minimalist\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2010-12-18 14:49:39 +01:00
copy /Y ..\bin\" notepad++.exe " .\minimalist\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2010-12-18 14:49:39 +01:00
copy /Y ..\bin\SciLexer.dll .\minimalist\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2015-08-13 02:22:47 +02:00
2016-09-09 23:26:15 +02:00
rmdir /S /Q .\minimalist64
mkdir .\minimalist64
2019-03-03 03:12:27 +01:00
mkdir .\minimalist64\userDefineLangs
2016-09-09 23:26:15 +02:00
copy /Y ..\bin\license.txt .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\bin\readme.txt .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\bin\change.log .\minimalist64\
If ErrorLevel 1 goto End
2019-03-03 03:12:27 +01:00
copy /Y " ..\bin\userDefineLangs\userDefinedLang-markdown.default.modern.xml " .\minimalist64\userDefineLangs\
If ErrorLevel 1 goto End
2016-09-09 23:26:15 +02:00
copy /Y ..\src\langs.model.xml .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\src\stylers.model.xml .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\src\contextMenu.xml .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\src\shortcuts.xml .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\bin\doLocalConf.xml .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\bin64\" notepad++.exe " .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\bin64\SciLexer.dll .\minimalist64\
If ErrorLevel 1 goto End
2010-12-18 14:49:39 +01:00
2018-11-06 13:31:20 +01:00
rem Remove old built Notepad++ 32-bit package
2011-05-31 02:04:49 +02:00
rmdir /S /Q .\zipped.package.release
2011-05-30 20:12:31 +02:00
2018-11-06 13:31:20 +01:00
rem Re-build Notepad++ 32-bit package folders
2011-05-30 20:12:31 +02:00
mkdir .\zipped.package.release
2013-05-05 20:12:01 +02:00
mkdir .\zipped.package.release\updater
mkdir .\zipped.package.release\localization
mkdir .\zipped.package.release\themes
2018-12-23 04:44:48 +01:00
mkdir .\zipped.package.release\autoCompletion
2019-03-03 03:12:27 +01:00
mkdir .\zipped.package.release\userDefineLangs
2013-05-05 20:12:01 +02:00
mkdir .\zipped.package.release\plugins
2018-04-30 19:36:15 +02:00
mkdir .\zipped.package.release\plugins\NppExport
mkdir .\zipped.package.release\plugins\mimeTools
mkdir .\zipped.package.release\plugins\NppConverter
2013-05-05 20:12:01 +02:00
mkdir .\zipped.package.release\plugins\Config
mkdir .\zipped.package.release\plugins\doc
2012-04-10 01:39:02 +02:00
2018-11-06 13:31:20 +01:00
rem Remove old built Notepad++ 64-bit package
2016-08-13 02:19:27 +02:00
rmdir /S /Q .\zipped.package.release64
2018-11-06 13:31:20 +01:00
rem Re-build Notepad++ 64-bit package folders
2016-08-13 02:19:27 +02:00
mkdir .\zipped.package.release64
mkdir .\zipped.package.release64\updater
mkdir .\zipped.package.release64\localization
mkdir .\zipped.package.release64\themes
2018-12-23 04:44:48 +01:00
mkdir .\zipped.package.release64\autoCompletion
2019-03-03 03:12:27 +01:00
mkdir .\zipped.package.release64\userDefineLangs
2016-08-13 02:19:27 +02:00
mkdir .\zipped.package.release64\plugins
2018-04-30 19:36:15 +02:00
mkdir .\zipped.package.release64\plugins\mimeTools
mkdir .\zipped.package.release64\plugins\NppConverter
2016-08-13 02:19:27 +02:00
mkdir .\zipped.package.release64\plugins\Config
mkdir .\zipped.package.release64\plugins\doc
2011-05-30 20:12:31 +02:00
2018-11-06 13:31:20 +01:00
rem Basic: Copy needed files into Notepad++ 32-bit package folders
2013-05-05 20:12:01 +02:00
copy /Y ..\bin\license.txt .\zipped.package.release\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2013-05-05 20:12:01 +02:00
copy /Y ..\bin\readme.txt .\zipped.package.release\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2013-05-05 20:12:01 +02:00
copy /Y ..\bin\change.log .\zipped.package.release\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2013-05-05 20:12:01 +02:00
copy /Y ..\src\langs.model.xml .\zipped.package.release\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2013-05-05 20:12:01 +02:00
copy /Y ..\src\stylers.model.xml .\zipped.package.release\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2013-05-05 20:12:01 +02:00
copy /Y ..\src\contextMenu.xml .\zipped.package.release\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2013-05-05 20:12:01 +02:00
copy /Y ..\src\shortcuts.xml .\zipped.package.release\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2013-06-29 23:18:45 +02:00
copy /Y ..\src\functionList.xml .\zipped.package.release\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2013-05-05 20:12:01 +02:00
copy /Y ..\bin\doLocalConf.xml .\zipped.package.release\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2013-05-05 20:12:01 +02:00
copy /Y ..\bin\" notepad++.exe " .\zipped.package.release\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2013-05-05 20:12:01 +02:00
copy /Y ..\bin\SciLexer.dll .\zipped.package.release\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2015-08-13 02:22:47 +02:00
2018-12-23 01:20:32 +01:00
2018-11-06 13:31:20 +01:00
rem Basic Copy needed files into Notepad++ 64-bit package folders
2017-08-29 03:01:24 +02:00
copy /Y ..\bin\license.txt .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\bin\readme.txt .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\bin\change.log .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\src\langs.model.xml .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\src\stylers.model.xml .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\src\contextMenu.xml .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\src\shortcuts.xml .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\src\functionList.xml .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\bin\doLocalConf.xml .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\bin64\" notepad++.exe " .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\bin64\SciLexer.dll .\zipped.package.release64\
If ErrorLevel 1 goto End
2011-05-28 20:15:02 +02:00
2018-11-06 13:31:20 +01:00
rem Plugins: Copy needed files into Notepad++ 32-bit package folders
2018-04-30 19:36:15 +02:00
copy /Y " ..\bin\plugins\NppExport\NppExport.dll " .\zipped.package.release\plugins\NppExport\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2018-04-30 19:36:15 +02:00
copy /Y " ..\bin\plugins\mimeTools\mimeTools.dll " .\zipped.package.release\plugins\mimeTools\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2018-04-30 19:36:15 +02:00
copy /Y " ..\bin\plugins\NppConverter\NppConverter.dll " .\zipped.package.release\plugins\NppConverter\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2011-05-28 20:15:02 +02:00
2018-11-06 13:31:20 +01:00
rem Plugins: Copy needed files into Notepad++ 64-bit package folders
2018-04-30 19:36:15 +02:00
copy /Y " ..\bin64\plugins\mimeTools\mimeTools.dll " .\zipped.package.release64\plugins\mimeTools\
2016-07-12 09:19:56 +02:00
If ErrorLevel 1 goto End
2018-04-30 19:36:15 +02:00
copy /Y " ..\bin64\plugins\NppConverter\NppConverter.dll " .\zipped.package.release64\plugins\NppConverter\
2016-07-12 09:19:56 +02:00
If ErrorLevel 1 goto End
2018-11-06 13:31:20 +01:00
rem localizations: Copy all files into Notepad++ 32-bit/64-bit package folders
2013-05-05 20:12:01 +02:00
copy /Y " .\nativeLang\*.xml " .\zipped.package.release\localization\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2016-07-12 09:19:56 +02:00
copy /Y " .\nativeLang\*.xml " .\zipped.package.release64\localization\
If ErrorLevel 1 goto End
2011-05-28 20:15:02 +02:00
2018-11-06 13:31:20 +01:00
rem files API: Copy all files into Notepad++ 32-bit/64-bit package folders
2018-12-23 04:44:48 +01:00
copy /Y " .\APIs\*.xml " .\zipped.package.release\autoCompletion\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2018-12-23 04:44:48 +01:00
copy /Y " .\APIs\*.xml " .\zipped.package.release64\autoCompletion\
2016-07-12 09:19:56 +02:00
If ErrorLevel 1 goto End
2011-05-28 20:15:02 +02:00
2019-03-03 03:12:27 +01:00
rem Markdown as UserDefineLanguge: Markdown syntax highlighter into Notepad++ 32-bit/64-bit package folders
copy /Y " ..\bin\userDefineLangs\userDefinedLang-markdown.default.modern.xml " .\zipped.package.release\userDefineLangs\
If ErrorLevel 1 goto End
copy /Y " ..\bin\userDefineLangs\userDefinedLang-markdown.default.modern.xml " .\zipped.package.release64\userDefineLangs\
If ErrorLevel 1 goto End
2018-11-06 13:31:20 +01:00
rem theme: Copy all files into Notepad++ 32-bit/64-bit package folders
2013-05-05 20:12:01 +02:00
copy /Y " .\themes\*.xml " .\zipped.package.release\themes\
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2016-07-12 09:19:56 +02:00
copy /Y " .\themes\*.xml " .\zipped.package.release64\themes\
If ErrorLevel 1 goto End
2009-04-25 01:34:47 +02:00
2018-12-23 01:20:32 +01:00
rem Plugins Admin
rem for disabling auto-updater
copy /Y ..\src\config.4zipPackage.xml .\zipped.package.release\config.xml
If ErrorLevel 1 goto End
2019-03-03 03:12:27 +01:00
copy /Y ..\bin\plugins\Config\nppPluginList.dll .\zipped.package.release\plugins\Config\
2018-12-23 01:20:32 +01:00
If ErrorLevel 1 goto End
copy /Y ..\bin\updater\GUP.exe .\zipped.package.release\updater\
If ErrorLevel 1 goto End
copy /Y ..\bin\updater\libcurl.dll .\zipped.package.release\updater\
If ErrorLevel 1 goto End
copy /Y ..\bin\updater\gup.xml .\zipped.package.release\updater\
If ErrorLevel 1 goto End
copy /Y ..\bin\updater\LICENSE .\zipped.package.release\updater\
If ErrorLevel 1 goto End
copy /Y ..\bin\updater\README.md .\zipped.package.release\updater\
If ErrorLevel 1 goto End
rem For disabling auto-updater
copy /Y ..\src\config.4zipPackage.xml .\zipped.package.release64\config.xml
If ErrorLevel 1 goto End
2019-03-03 03:12:27 +01:00
copy /Y ..\bin64\plugins\Config\nppPluginList.dll .\zipped.package.release64\plugins\Config\
2018-12-23 01:20:32 +01:00
If ErrorLevel 1 goto End
copy /Y ..\bin64\updater\GUP.exe .\zipped.package.release64\updater\
If ErrorLevel 1 goto End
copy /Y ..\bin64\updater\libcurl.dll .\zipped.package.release64\updater\
If ErrorLevel 1 goto End
copy /Y ..\bin64\updater\gup.xml .\zipped.package.release64\updater\
If ErrorLevel 1 goto End
copy /Y ..\bin64\updater\LICENSE .\zipped.package.release64\updater\
If ErrorLevel 1 goto End
copy /Y ..\bin64\updater\README.md .\zipped.package.release64\updater\
If ErrorLevel 1 goto End
2011-05-28 20:15:02 +02:00
2010-12-18 14:49:39 +01:00
" C:\Program Files\7-Zip\7z.exe " a -r .\build\npp.bin.minimalist.7z .\minimalist\*
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2016-09-09 23:26:15 +02:00
" C:\Program Files\7-Zip\7z.exe " a -r .\build\npp.bin.minimalist64.7z .\minimalist64\*
If ErrorLevel 1 goto End
2009-12-18 00:33:39 +01:00
" C:\Program Files\7-Zip\7z.exe " a -tzip -r .\build\npp.bin.zip .\zipped.package.release\*
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2009-12-18 00:33:39 +01:00
" C:\Program Files\7-Zip\7z.exe " a -r .\build\npp.bin.7z .\zipped.package.release\*
2016-02-20 15:26:40 +01:00
If ErrorLevel 1 goto End
2016-08-03 20:01:52 +02:00
rem IF EXIST "%PROGRAMFILES(X86)%" ("%PROGRAMFILES(x86)%\NSIS\Unicode\makensis.exe" nppSetup.nsi) ELSE ("%PROGRAMFILES%\NSIS\Unicode\makensis.exe" nppSetup.nsi)
IF EXIST " %PROGRAMFILES(X86)% " ( " %PROGRAMFILES(x86)% \NSIS\makensis.exe " nppSetup.nsi) ELSE ( " %PROGRAMFILES% \NSIS\makensis.exe " nppSetup.nsi)
2016-09-09 23:26:15 +02:00
IF EXIST " %PROGRAMFILES(X86)% " ( " %PROGRAMFILES(x86)% \NSIS\makensis.exe " -DARCH64 nppSetup.nsi) ELSE ( " %PROGRAMFILES% \NSIS\makensis.exe " -DARCH64 nppSetup.nsi)
2009-04-25 01:34:47 +02:00
2018-11-06 13:31:20 +01:00
rem Remove old build
2016-07-12 09:19:56 +02:00
rmdir /S /Q .\zipped.package.release
2017-08-29 03:01:24 +02:00
rem
2016-07-12 09:19:56 +02:00
" C:\Program Files\7-Zip\7z.exe " a -tzip -r .\build\npp.bin64.zip .\zipped.package.release64\*
If ErrorLevel 1 goto End
2016-09-09 23:26:15 +02:00
" C:\Program Files\7-Zip\7z.exe " a -r .\build\npp.bin64.7z .\zipped.package.release64\*
If ErrorLevel 1 goto End
2016-07-12 09:19:56 +02:00
2016-09-21 20:55:10 +02:00
rem set var locally in this batch file
2009-12-19 13:42:57 +01:00
setlocal enableDelayedExpansion
cd .\build\
2016-09-21 20:55:10 +02:00
for %% a in ( npp.*.Installer.exe) do (
2009-12-19 13:42:57 +01:00
rem echo a = %%a
set nppInstallerVar = %% a
2016-09-21 20:55:10 +02:00
set nppInstallerVar64 = !nppInstallerVar:Installer.exe=Installer.x64.exe!
2017-08-29 03:01:24 +02:00
2018-11-28 18:49:07 +01:00
rem nppInstallerVar should be the version for example: 6.9
2017-08-29 03:01:24 +02:00
rem we put npp.6.9. + (bin.zip instead of Installer.exe) into var zipvar
2016-09-21 20:55:10 +02:00
set zipvar = !nppInstallerVar:Installer.exe=bin.zip!
2017-08-29 03:01:24 +02:00
2016-09-21 20:55:10 +02:00
set zipvar64 = !nppInstallerVar:Installer.exe=bin.x64.zip!
set 7zvar = !nppInstallerVar:Installer.exe=bin.7z!
set 7zvar64 = !nppInstallerVar:Installer.exe=bin.x64.7z!
set 7zvarMin = !nppInstallerVar:Installer.exe=bin.minimalist.7z!
set 7zvarMin64 = !nppInstallerVar:Installer.exe=bin.minimalist.x64.7z!
2009-12-19 13:42:57 +01:00
)
2016-07-12 09:19:56 +02:00
2016-09-09 23:26:15 +02:00
rem echo zipvar=!zipvar!
2016-09-21 20:55:10 +02:00
rem echo zipvar64=!zipvar64!
2016-09-09 23:26:15 +02:00
rem echo 7zvar=!7zvar!
2016-09-21 20:55:10 +02:00
rem echo 7zvar64=!7zvar64!
2016-09-09 23:26:15 +02:00
rem echo 7zvarMin=!7zvarMin!
2016-09-21 20:55:10 +02:00
rem echo 7zvarMin64=!7zvarMin64!
2009-12-19 13:42:57 +01:00
ren npp.bin.zip !zipvar!
2016-09-09 23:26:15 +02:00
ren npp.bin64.zip !zipvar64!
2009-12-19 13:42:57 +01:00
ren npp.bin.7z !7zvar!
2016-09-09 23:26:15 +02:00
ren npp.bin64.7z !7zvar64!
2010-12-18 14:49:39 +01:00
ren npp.bin.minimalist.7z !7zvarMin!
2016-09-09 23:26:15 +02:00
ren npp.bin.minimalist64.7z !7zvarMin64!
2016-02-20 15:26:40 +01:00
2016-07-12 09:19:56 +02:00
if %SIGN% == 0 goto NoSignInstaller
2016-02-20 15:26:40 +01:00
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!
2016-09-21 20:55:10 +02:00
If ErrorLevel 1 goto End
signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d " Notepad++ Installer " /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ !nppInstallerVar64!
If ErrorLevel 1 goto End
2016-07-12 09:19:56 +02:00
: NoSignInstaller
2009-12-19 13:42:57 +01:00
cd ..
endlocal
2016-02-20 15:26:40 +01:00
: End