diff --git a/installer/lib/izpack/VersionInfo_template.rc b/installer/lib/izpack/VersionInfo_template.rc new file mode 100644 index 0000000000..0ac904ad1a Binary files /dev/null and b/installer/lib/izpack/VersionInfo_template.rc differ diff --git a/installer/lib/izpack/rh.bat b/installer/lib/izpack/rh.bat new file mode 100755 index 0000000000..d50a958383 --- /dev/null +++ b/installer/lib/izpack/rh.bat @@ -0,0 +1,23 @@ +:: Files required: +:: ResourceHacker.exe from http://www.angusj.com/resourcehacker/ +:: VersionInfo_template.rc copied from installer/lib/izpack +:: console.ico copied from installer/resources +:: the unsigned i2pinstall_0.9.xx_windows.exe +:: +:: the original file will be renamed to i2pinstall_0.9.xx_windows_unsigned.exe +:: the output will be the same as the original file name +:: on success, sign it. +:: +set VER=39 +set FULLVER=0.9.%VER% +set INFILE=i2pinstall_%FULLVER%_windows.exe +set UNSIGNED=i2pinstall_%FULLVER%_windows_unsigned.exe +set TEMPFILE=i2pinstall_%FULLVER%_windows_temp.exe +set RCFILE=VersionInfo_%FULLVER%.rc +set RESFILE=VersionInfo_%FULLVER%.res +rename %INFILE% %UNSIGNED% +powershell -Command "(gc VersionInfo_template.rc) -replace 'I2PVER', '%VER%' | Out-File %RCFILE%" +ResourceHacker.exe -open %RCFILE% -save %RESFILE% -action compile +ResourceHacker.exe -open %UNSIGNED% -save %TEMPFILE% -action addoverwrite -res VersionInfo1.res -mask VERSIONINFO,, +ResourceHacker.exe -open %TEMPFILE% -save %INFILE% -action addoverwrite -res console.ico -mask ICONGROUP,159, +del %TEMPFILE% %RCFILE% %RESFILE% diff --git a/installer/resources/checklist.md b/installer/resources/checklist.md index 22b41dd453..7c5e05eade 100644 --- a/installer/resources/checklist.md +++ b/installer/resources/checklist.md @@ -125,7 +125,14 @@ 1. `ant release` - - Sign the windows installer + - Copy i2pinstall_${release.number}_windows.exe, + console.ico, ../lib/izpack/rh.bat, and ../lib/izpack/VersionInfo_template.rc + to Windows machine + - Edit rh.bat to set the correct version number + - Run rh.bat to edit the resources + - Sign the windows installer: + Open Visual Studio developer prompt + signtool sign /debug i2pinstall_${release.number}_windows.exe - GPG sign the signed windows installer: gpg -u keyid -b i2pinstall_${release.number}_windows.exe - sha256sum i2pinstall_${release.number}_windows.exe