Enhance Notepad++ installation packaging

Use GUP to retrieve GUP release from its website while doing Notepad++ release.
This commit is contained in:
Don HO 2018-05-20 03:05:06 +02:00
parent 07b7653163
commit 9391fa764f
2 changed files with 15 additions and 2 deletions

4
.gitignore vendored
View File

@ -66,9 +66,11 @@ PowerEditor/bin/session.xml
PowerEditor/bin/functionList.xml
PowerEditor/bin/shortcuts.xml
PowerEditor/bin/backup/
PowerEditor/bin/localization
PowerEditor/bin/localization/
PowerEditor/bin/plugins/
PowerEditor/bin/updater/
PowerEditor/bin64/
PowerEditor/installer/bin/wingup/
PowerEditor/installer/build/
PowerEditor/installer/minimalist/
PowerEditor/installer/minimalist64/

View File

@ -17,8 +17,19 @@ rem along with this program; if not, write to the Free Software
rem Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
echo on
if %SIGN% == 0 goto NoSign
rem retrieve GUP release from website while doing Notepad++ release
set WINGUP_VER=5.0.1
IF EXIST ".\bin\wingup\GUP.exe" (
cd .\bin\wingup
GUP.exe -unzipTo %~dp0\..\bin\updater https://github.com/notepad-plus-plus/wingup/releases/download/v%WINGUP_VER%/wingup.v%WINGUP_VER%.bin.zip
GUP.exe -unzipTo %~dp0\..\bin64\updater https://github.com/notepad-plus-plus/wingup/releases/download/v%WINGUP_VER%/wingup.v%WINGUP_VER%.bin.x64.zip
cd ..\..
) ELSE (
echo .\wingup\GUP.exe is absent.
)
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