Skip to content

Commit

Permalink
Enhance Notepad++ installation packaging
Browse files Browse the repository at this point in the history
Use GUP to retrieve GUP release from its website while doing Notepad++ release.
  • Loading branch information
donho committed May 20, 2018
1 parent 07b7653 commit 9391fa7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
13 changes: 12 additions & 1 deletion PowerEditor/installer/packageAll.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9391fa7

Please sign in to comment.