mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-21 21:04:54 +02:00
Remove unecessary component (ChangeIcon.exe)
Sign all binaries Add License header
This commit is contained in:
parent
f3d88284d7
commit
1a0cde0271
@ -43,7 +43,7 @@ SetCompressor /SOLID lzma ; This reduces installer size by approx 30~35%
|
|||||||
!ifdef ARCH64
|
!ifdef ARCH64
|
||||||
OutFile ".\build\npp.${APPVERSION}.Installer.x64.exe"
|
OutFile ".\build\npp.${APPVERSION}.Installer.x64.exe"
|
||||||
!else
|
!else
|
||||||
OutFile ".\build\npp.${APPVERSION}.Installer.x32.exe"
|
OutFile ".\build\npp.${APPVERSION}.Installer.exe"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
; Insert CheckIfRunning function as an installer and uninstaller function.
|
; Insert CheckIfRunning function as an installer and uninstaller function.
|
||||||
|
@ -1,3 +1,31 @@
|
|||||||
|
; this file is part of installer for Notepad++
|
||||||
|
; Copyright (C)2016 Don HO <don.h@free.fr>
|
||||||
|
;
|
||||||
|
; This program is free software; you can redistribute it and/or
|
||||||
|
; modify it under the terms of the GNU General Public License
|
||||||
|
; as published by the Free Software Foundation; either
|
||||||
|
; version 2 of the License, or (at your option) any later version.
|
||||||
|
;
|
||||||
|
; Note that the GPL places important restrictions on "derived works", yet
|
||||||
|
; it does not provide a detailed definition of that term. To avoid
|
||||||
|
; misunderstandings, we consider an application to constitute a
|
||||||
|
; "derivative work" for the purpose of this license if it does any of the
|
||||||
|
; following:
|
||||||
|
; 1. Integrates source code from Notepad++.
|
||||||
|
; 2. Integrates/includes/aggregates Notepad++ into a proprietary executable
|
||||||
|
; installer, such as those produced by InstallShield.
|
||||||
|
; 3. Links to a library or executes a program that does any of the above.
|
||||||
|
;
|
||||||
|
; This program is distributed in the hope that it will be useful,
|
||||||
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
; GNU General Public License for more details.
|
||||||
|
;
|
||||||
|
; You should have received a copy of the GNU General Public License
|
||||||
|
; along with this program; if not, write to the Free Software
|
||||||
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
SectionGroup "Auto-completion Files" autoCompletionComponent
|
SectionGroup "Auto-completion Files" autoCompletionComponent
|
||||||
SetOverwrite off
|
SetOverwrite off
|
||||||
|
|
||||||
|
@ -1,3 +1,31 @@
|
|||||||
|
; this file is part of installer for Notepad++
|
||||||
|
; Copyright (C)2016 Don HO <don.h@free.fr>
|
||||||
|
;
|
||||||
|
; This program is free software; you can redistribute it and/or
|
||||||
|
; modify it under the terms of the GNU General Public License
|
||||||
|
; as published by the Free Software Foundation; either
|
||||||
|
; version 2 of the License, or (at your option) any later version.
|
||||||
|
;
|
||||||
|
; Note that the GPL places important restrictions on "derived works", yet
|
||||||
|
; it does not provide a detailed definition of that term. To avoid
|
||||||
|
; misunderstandings, we consider an application to constitute a
|
||||||
|
; "derivative work" for the purpose of this license if it does any of the
|
||||||
|
; following:
|
||||||
|
; 1. Integrates source code from Notepad++.
|
||||||
|
; 2. Integrates/includes/aggregates Notepad++ into a proprietary executable
|
||||||
|
; installer, such as those produced by InstallShield.
|
||||||
|
; 3. Links to a library or executes a program that does any of the above.
|
||||||
|
;
|
||||||
|
; This program is distributed in the hope that it will be useful,
|
||||||
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
; GNU General Public License for more details.
|
||||||
|
;
|
||||||
|
; You should have received a copy of the GNU General Public License
|
||||||
|
; along with this program; if not, write to the Free Software
|
||||||
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
${MementoSection} "Context Menu Entry" explorerContextMenu
|
${MementoSection} "Context Menu Entry" explorerContextMenu
|
||||||
SetOverwrite try
|
SetOverwrite try
|
||||||
SetOutPath "$INSTDIR\"
|
SetOutPath "$INSTDIR\"
|
||||||
|
@ -1,3 +1,30 @@
|
|||||||
|
; this file is part of installer for Notepad++
|
||||||
|
; Copyright (C)2016 Don HO <don.h@free.fr>
|
||||||
|
;
|
||||||
|
; This program is free software; you can redistribute it and/or
|
||||||
|
; modify it under the terms of the GNU General Public License
|
||||||
|
; as published by the Free Software Foundation; either
|
||||||
|
; version 2 of the License, or (at your option) any later version.
|
||||||
|
;
|
||||||
|
; Note that the GPL places important restrictions on "derived works", yet
|
||||||
|
; it does not provide a detailed definition of that term. To avoid
|
||||||
|
; misunderstandings, we consider an application to constitute a
|
||||||
|
; "derivative work" for the purpose of this license if it does any of the
|
||||||
|
; following:
|
||||||
|
; 1. Integrates source code from Notepad++.
|
||||||
|
; 2. Integrates/includes/aggregates Notepad++ into a proprietary executable
|
||||||
|
; installer, such as those produced by InstallShield.
|
||||||
|
; 3. Links to a library or executes a program that does any of the above.
|
||||||
|
;
|
||||||
|
; This program is distributed in the hope that it will be useful,
|
||||||
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
; GNU General Public License for more details.
|
||||||
|
;
|
||||||
|
; You should have received a copy of the GNU General Public License
|
||||||
|
; along with this program; if not, write to the Free Software
|
||||||
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
; Define the application name
|
; Define the application name
|
||||||
!define APPNAME "Notepad++"
|
!define APPNAME "Notepad++"
|
||||||
|
@ -1,3 +1,31 @@
|
|||||||
|
; this file is part of installer for Notepad++
|
||||||
|
; Copyright (C)2016 Don HO <don.h@free.fr>
|
||||||
|
;
|
||||||
|
; This program is free software; you can redistribute it and/or
|
||||||
|
; modify it under the terms of the GNU General Public License
|
||||||
|
; as published by the Free Software Foundation; either
|
||||||
|
; version 2 of the License, or (at your option) any later version.
|
||||||
|
;
|
||||||
|
; Note that the GPL places important restrictions on "derived works", yet
|
||||||
|
; it does not provide a detailed definition of that term. To avoid
|
||||||
|
; misunderstandings, we consider an application to constitute a
|
||||||
|
; "derivative work" for the purpose of this license if it does any of the
|
||||||
|
; following:
|
||||||
|
; 1. Integrates source code from Notepad++.
|
||||||
|
; 2. Integrates/includes/aggregates Notepad++ into a proprietary executable
|
||||||
|
; installer, such as those produced by InstallShield.
|
||||||
|
; 3. Links to a library or executes a program that does any of the above.
|
||||||
|
;
|
||||||
|
; This program is distributed in the hope that it will be useful,
|
||||||
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
; GNU General Public License for more details.
|
||||||
|
;
|
||||||
|
; You should have received a copy of the GNU General Public License
|
||||||
|
; along with this program; if not, write to the Free Software
|
||||||
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
; Set languages (first is default language)
|
; Set languages (first is default language)
|
||||||
;!insertmacro MUI_LANGUAGE "English"
|
;!insertmacro MUI_LANGUAGE "English"
|
||||||
!define MUI_LANGDLL_ALLLANGUAGES
|
!define MUI_LANGDLL_ALLLANGUAGES
|
||||||
|
@ -1,3 +1,30 @@
|
|||||||
|
; this file is part of installer for Notepad++
|
||||||
|
; Copyright (C)2016 Don HO <don.h@free.fr>
|
||||||
|
;
|
||||||
|
; This program is free software; you can redistribute it and/or
|
||||||
|
; modify it under the terms of the GNU General Public License
|
||||||
|
; as published by the Free Software Foundation; either
|
||||||
|
; version 2 of the License, or (at your option) any later version.
|
||||||
|
;
|
||||||
|
; Note that the GPL places important restrictions on "derived works", yet
|
||||||
|
; it does not provide a detailed definition of that term. To avoid
|
||||||
|
; misunderstandings, we consider an application to constitute a
|
||||||
|
; "derivative work" for the purpose of this license if it does any of the
|
||||||
|
; following:
|
||||||
|
; 1. Integrates source code from Notepad++.
|
||||||
|
; 2. Integrates/includes/aggregates Notepad++ into a proprietary executable
|
||||||
|
; installer, such as those produced by InstallShield.
|
||||||
|
; 3. Links to a library or executes a program that does any of the above.
|
||||||
|
;
|
||||||
|
; This program is distributed in the hope that it will be useful,
|
||||||
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
; GNU General Public License for more details.
|
||||||
|
;
|
||||||
|
; You should have received a copy of the GNU General Public License
|
||||||
|
; along with this program; if not, write to the Free Software
|
||||||
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
Function setPathAndOptions
|
Function setPathAndOptions
|
||||||
; Set Section properties
|
; Set Section properties
|
||||||
SetOverwrite on
|
SetOverwrite on
|
||||||
|
@ -1,3 +1,30 @@
|
|||||||
|
; this file is part of installer for Notepad++
|
||||||
|
; Copyright (C)2016 Don HO <don.h@free.fr>
|
||||||
|
;
|
||||||
|
; This program is free software; you can redistribute it and/or
|
||||||
|
; modify it under the terms of the GNU General Public License
|
||||||
|
; as published by the Free Software Foundation; either
|
||||||
|
; version 2 of the License, or (at your option) any later version.
|
||||||
|
;
|
||||||
|
; Note that the GPL places important restrictions on "derived works", yet
|
||||||
|
; it does not provide a detailed definition of that term. To avoid
|
||||||
|
; misunderstandings, we consider an application to constitute a
|
||||||
|
; "derivative work" for the purpose of this license if it does any of the
|
||||||
|
; following:
|
||||||
|
; 1. Integrates source code from Notepad++.
|
||||||
|
; 2. Integrates/includes/aggregates Notepad++ into a proprietary executable
|
||||||
|
; installer, such as those produced by InstallShield.
|
||||||
|
; 3. Links to a library or executes a program that does any of the above.
|
||||||
|
;
|
||||||
|
; This program is distributed in the hope that it will be useful,
|
||||||
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
; GNU General Public License for more details.
|
||||||
|
;
|
||||||
|
; You should have received a copy of the GNU General Public License
|
||||||
|
; along with this program; if not, write to the Free Software
|
||||||
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
SectionGroup "Themes" Themes
|
SectionGroup "Themes" Themes
|
||||||
SetOverwrite off
|
SetOverwrite off
|
||||||
${MementoSection} "Black Board" BlackBoard
|
${MementoSection} "Black Board" BlackBoard
|
||||||
|
@ -1,5 +1,29 @@
|
|||||||
|
; this file is part of installer for Notepad++
|
||||||
|
; Copyright (C)2016 Don HO <don.h@free.fr>
|
||||||
|
;
|
||||||
|
; This program is free software; you can redistribute it and/or
|
||||||
|
; modify it under the terms of the GNU General Public License
|
||||||
|
; as published by the Free Software Foundation; either
|
||||||
|
; version 2 of the License, or (at your option) any later version.
|
||||||
|
;
|
||||||
|
; Note that the GPL places important restrictions on "derived works", yet
|
||||||
|
; it does not provide a detailed definition of that term. To avoid
|
||||||
|
; misunderstandings, we consider an application to constitute a
|
||||||
|
; "derivative work" for the purpose of this license if it does any of the
|
||||||
|
; following:
|
||||||
|
; 1. Integrates source code from Notepad++.
|
||||||
|
; 2. Integrates/includes/aggregates Notepad++ into a proprietary executable
|
||||||
|
; installer, such as those produced by InstallShield.
|
||||||
|
; 3. Links to a library or executes a program that does any of the above.
|
||||||
|
;
|
||||||
|
; This program is distributed in the hope that it will be useful,
|
||||||
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
; GNU General Public License for more details.
|
||||||
|
;
|
||||||
|
; You should have received a copy of the GNU General Public License
|
||||||
|
; along with this program; if not, write to the Free Software
|
||||||
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
Function LaunchNpp
|
Function LaunchNpp
|
||||||
Exec '"$INSTDIR\notepad++.exe" "$INSTDIR\change.log" '
|
Exec '"$INSTDIR\notepad++.exe" "$INSTDIR\change.log" '
|
||||||
@ -85,11 +109,6 @@ FunctionEnd
|
|||||||
Var noUserDataChecked
|
Var noUserDataChecked
|
||||||
Var allowPluginLoadFromUserDataChecked
|
Var allowPluginLoadFromUserDataChecked
|
||||||
Var createShortcutChecked
|
Var createShortcutChecked
|
||||||
Var isOldIconChecked
|
|
||||||
|
|
||||||
|
|
||||||
; TODO for optional arg
|
|
||||||
;Var params
|
|
||||||
|
|
||||||
; The definition of "OnChange" event for checkbox
|
; The definition of "OnChange" event for checkbox
|
||||||
Function OnChange_NoUserDataCheckBox
|
Function OnChange_NoUserDataCheckBox
|
||||||
|
@ -1,3 +1,29 @@
|
|||||||
|
; this file is part of installer for Notepad++
|
||||||
|
; Copyright (C)2016 Don HO <don.h@free.fr>
|
||||||
|
;
|
||||||
|
; This program is free software; you can redistribute it and/or
|
||||||
|
; modify it under the terms of the GNU General Public License
|
||||||
|
; as published by the Free Software Foundation; either
|
||||||
|
; version 2 of the License, or (at your option) any later version.
|
||||||
|
;
|
||||||
|
; Note that the GPL places important restrictions on "derived works", yet
|
||||||
|
; it does not provide a detailed definition of that term. To avoid
|
||||||
|
; misunderstandings, we consider an application to constitute a
|
||||||
|
; "derivative work" for the purpose of this license if it does any of the
|
||||||
|
; following:
|
||||||
|
; 1. Integrates source code from Notepad++.
|
||||||
|
; 2. Integrates/includes/aggregates Notepad++ into a proprietary executable
|
||||||
|
; installer, such as those produced by InstallShield.
|
||||||
|
; 3. Links to a library or executes a program that does any of the above.
|
||||||
|
;
|
||||||
|
; This program is distributed in the hope that it will be useful,
|
||||||
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
; GNU General Public License for more details.
|
||||||
|
;
|
||||||
|
; You should have received a copy of the GNU General Public License
|
||||||
|
; along with this program; if not, write to the Free Software
|
||||||
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
Section un.explorerContextMenu
|
Section un.explorerContextMenu
|
||||||
Exec 'regsvr32 /u /s "$INSTDIR\NppShell_01.dll"'
|
Exec 'regsvr32 /u /s "$INSTDIR\NppShell_01.dll"'
|
||||||
|
@ -1,3 +1,30 @@
|
|||||||
|
; this file is part of installer for Notepad++
|
||||||
|
; Copyright (C)2016 Don HO <don.h@free.fr>
|
||||||
|
;
|
||||||
|
; This program is free software; you can redistribute it and/or
|
||||||
|
; modify it under the terms of the GNU General Public License
|
||||||
|
; as published by the Free Software Foundation; either
|
||||||
|
; version 2 of the License, or (at your option) any later version.
|
||||||
|
;
|
||||||
|
; Note that the GPL places important restrictions on "derived works", yet
|
||||||
|
; it does not provide a detailed definition of that term. To avoid
|
||||||
|
; misunderstandings, we consider an application to constitute a
|
||||||
|
; "derivative work" for the purpose of this license if it does any of the
|
||||||
|
; following:
|
||||||
|
; 1. Integrates source code from Notepad++.
|
||||||
|
; 2. Integrates/includes/aggregates Notepad++ into a proprietary executable
|
||||||
|
; installer, such as those produced by InstallShield.
|
||||||
|
; 3. Links to a library or executes a program that does any of the above.
|
||||||
|
;
|
||||||
|
; This program is distributed in the hope that it will be useful,
|
||||||
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
; GNU General Public License for more details.
|
||||||
|
;
|
||||||
|
; You should have received a copy of the GNU General Public License
|
||||||
|
; along with this program; if not, write to the Free Software
|
||||||
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
; http://nsis.sourceforge.net/Get_Windows_version
|
; http://nsis.sourceforge.net/Get_Windows_version
|
||||||
|
|
||||||
|
@ -20,25 +20,31 @@ echo on
|
|||||||
|
|
||||||
if %SIGN% == 0 goto NoSign
|
if %SIGN% == 0 goto NoSign
|
||||||
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
|
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/ ..\bin64\notepad++.exe
|
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
|
||||||
If ErrorLevel 1 goto End
|
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
|
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/ ..\bin64\SciLexer.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\SciLexer.dll
|
||||||
If ErrorLevel 1 goto End
|
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
|
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
|
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
|
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
|
||||||
rem signtool.exe sign /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ /t http://timestamp.digicert.com/ ..\bin64\NppShell64_06.dll
|
|
||||||
If ErrorLevel 1 goto End
|
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
|
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
|
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
|
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
|
||||||
If ErrorLevel 1 goto End
|
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
|
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
|
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\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\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\plugins\NppExport.dll
|
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
|
If ErrorLevel 1 goto End
|
||||||
@ -260,28 +266,33 @@ If ErrorLevel 1 goto End
|
|||||||
If ErrorLevel 1 goto End
|
If ErrorLevel 1 goto End
|
||||||
|
|
||||||
|
|
||||||
|
rem set var locally in this batch file
|
||||||
@echo off
|
|
||||||
|
|
||||||
setlocal enableDelayedExpansion
|
setlocal enableDelayedExpansion
|
||||||
|
|
||||||
cd .\build\
|
cd .\build\
|
||||||
|
|
||||||
for %%a in (npp.*.Installer.x32.exe) do (
|
|
||||||
|
for %%a in (npp.*.Installer.exe) do (
|
||||||
rem echo a = %%a
|
rem echo a = %%a
|
||||||
set nppInstallerVar=%%a
|
set nppInstallerVar=%%a
|
||||||
set zipvar=!nppInstallerVar:Installer.x32.exe=bin.x32.zip!
|
set nppInstallerVar64=!nppInstallerVar:Installer.exe=Installer.x64.exe!
|
||||||
set zipvar64=!nppInstallerVar:Installer.x32.exe=bin.x64.zip!
|
|
||||||
set 7zvar=!nppInstallerVar:Installer.x32.exe=bin.x32.7z!
|
rem nppInstallerVar should be the version for exemple: 6.9
|
||||||
set 7zvar64=!nppInstallerVar:Installer.x32.exe=bin.x64.7z!
|
rem we put npp.6.9. + (bin.zip instead of Installer.exe) into var zipvar
|
||||||
set 7zvarMin=!nppInstallerVar:Installer.x32.exe=bin.minimalist.x32.7z!
|
set zipvar=!nppInstallerVar:Installer.exe=bin.zip!
|
||||||
set 7zvarMin64=!nppInstallerVar:Installer.x32.exe=bin.minimalist.x64.7z!
|
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!
|
||||||
)
|
)
|
||||||
|
|
||||||
rem echo zipvar=!zipvar!
|
rem echo zipvar=!zipvar!
|
||||||
rem echo 64zipvar=!64zipvar!
|
rem echo zipvar64=!zipvar64!
|
||||||
rem echo 7zvar=!7zvar!
|
rem echo 7zvar=!7zvar!
|
||||||
|
rem echo 7zvar64=!7zvar64!
|
||||||
rem echo 7zvarMin=!7zvarMin!
|
rem echo 7zvarMin=!7zvarMin!
|
||||||
|
rem echo 7zvarMin64=!7zvarMin64!
|
||||||
ren npp.bin.zip !zipvar!
|
ren npp.bin.zip !zipvar!
|
||||||
ren npp.bin64.zip !zipvar64!
|
ren npp.bin64.zip !zipvar64!
|
||||||
ren npp.bin.7z !7zvar!
|
ren npp.bin.7z !7zvar!
|
||||||
@ -291,6 +302,9 @@ ren npp.bin.minimalist64.7z !7zvarMin64!
|
|||||||
|
|
||||||
if %SIGN% == 0 goto NoSignInstaller
|
if %SIGN% == 0 goto NoSignInstaller
|
||||||
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!
|
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!
|
||||||
|
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
|
||||||
:NoSignInstaller
|
:NoSignInstaller
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
x
Reference in New Issue
Block a user