mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Include the installer versions of binaries in checksum files.
Those hashes aren't directly needed for authenticating downloaded files (the installer itself is checksummed, which covers all the files it will unpack from itself). But they'll surely come in useful for other purposes sooner or later, so we should arrange to keep them somewhere easy to find.
This commit is contained in:
parent
8b7458119f
commit
9f0e0b02e3
8
Buildscr
8
Buildscr
@ -203,6 +203,10 @@ in putty/windows do make -f Makefile.clangcl BUILDDIR=abuild64/ cleantestprogs
|
||||
# all in place.
|
||||
ifneq "$(cross_winsigncode)" "" in putty/windows do $(cross_winsigncode) -N -i https://www.chiark.greenend.org.uk/~sgtatham/putty/ build*/*.exe abuild*/*.exe
|
||||
|
||||
# Make a preliminary set of cryptographic checksums giving the hashes
|
||||
# of these versions of the binaries. We'll make the rest below.
|
||||
in putty do for hash in md5 sha1 sha256 sha512; do for dir_plat in "build32 w32" "build64 w64" "abuild32 wa32" "abuild64 wa64"; do set -- $$dir_plat; (cd windows/$$1 && $${hash}sum *.exe | sed 's!\( \+\)!\1'$$2'/!;s!$$! (installer version)!') >> $${hash}sums.installer; done; done
|
||||
|
||||
# Build a WiX MSI installer, for each of build32 and build64.
|
||||
in putty/windows with wixonlinux do candle -arch x86 -dRealPlatform=x86 -dDllOk=yes -dBuilddir=build32/ -dWinver="$(Winver)" -dPuttytextver="$(Puttytextver)" installer.wxs && light -ext WixUIExtension -ext WixUtilExtension -sval installer.wixobj -o installer32.msi -spdb
|
||||
in putty/windows with wixonlinux do candle -arch x64 -dRealPlatform=x64 -dDllOk=yes -dBuilddir=build64/ -dWinver="$(Winver)" -dPuttytextver="$(Puttytextver)" installer.wxs && light -ext WixUIExtension -ext WixUtilExtension -sval installer.wixobj -o installer64.msi -spdb
|
||||
@ -303,7 +307,9 @@ deliver putty/sign.sh $@
|
||||
# Creating these files is most easily done in the destination
|
||||
# directory, where all the files we're delivering are already in their
|
||||
# final relative layout.
|
||||
in-dest putty do a=`\find * -type f -print`; md5sum $$a > md5sums && sha1sum $$a > sha1sums && sha256sum $$a > sha256sums && sha512sum $$a > sha512sums
|
||||
in . do pwd > builddir
|
||||
read Builddir builddir
|
||||
in-dest putty do a=`\find * -type f -print`; for hash in md5 sha1 sha256 sha512; do ($${hash}sum $$a; echo; cat $(Builddir)/putty/$${hash}sums.installer) > $${hash}sums; done
|
||||
|
||||
# And construct .htaccess files. One in the top-level directory,
|
||||
# setting the MIME types for Windows help files and providing an
|
||||
|
Loading…
Reference in New Issue
Block a user