From d29d33e165fe83497109dea2fafab4451e2607c3 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 8 Apr 2016 11:00:08 +0100 Subject: [PATCH] Update build script for Inno Setup 5.5.9. I've just upgraded my build environment to the latest Inno Setup (apparently fixing some DLL hijacking issues), and found that the build script doesn't run any more because the name of the output file has changed - it used to produce Output/setup.exe, but now it produces Output/mysetup.exe. Rather than just fixing the build script to expect the new name, I've explicitly specified an output filename of my own choice in putty.iss, so that the build script should now work with versions before and after the change. --- Buildscr | 6 +++--- windows/putty.iss | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Buildscr b/Buildscr index e530ad12..863f01bd 100644 --- a/Buildscr +++ b/Buildscr @@ -177,14 +177,14 @@ delegate windows in putty/windows with innosetup do/win iscc putty.iss # Sign the installers. - ifneq "$(winsigncode)" "" in putty/windows do $(winsigncode) -i http://www.chiark.greenend.org.uk/~sgtatham/putty/ -n "PuTTY Installer" installer.msi Output/setup.exe + ifneq "$(winsigncode)" "" in putty/windows do $(winsigncode) -i http://www.chiark.greenend.org.uk/~sgtatham/putty/ -n "PuTTY Installer" installer.msi Output/installer.exe # Finished Windows builds. return putty/windows/*.exe return putty/windows/*.map return putty/doc/putty.chm return putty/windows/installer.msi - return putty/windows/Output/setup.exe + return putty/windows/Output/installer.exe enddelegate in putty/doc do make mostlyclean in putty/doc do make $(Docmakever) @@ -195,7 +195,7 @@ in putty/doc do zip puttydoc.zip *.html deliver putty/windows/*.exe putty/x86/$@ deliver putty/windows/putty.zip putty/x86/$@ deliver putty/windows/installer.msi putty/x86/$(Ifilename).msi -deliver putty/windows/Output/setup.exe putty/x86/$(Ifilename).exe +deliver putty/windows/Output/installer.exe putty/x86/$(Ifilename).exe deliver putty/doc/puttydoc.zip putty/$@ deliver putty/doc/putty.chm putty/$@ deliver putty/doc/putty.hlp putty/$@ diff --git a/windows/putty.iss b/windows/putty.iss index 5856909e..79a4dc49 100644 --- a/windows/putty.iss +++ b/windows/putty.iss @@ -28,6 +28,7 @@ ChangesAssociations=yes ;ChangesEnvironment=yes -- when PATH munging is sorted (probably) Compression=zip/9 AllowNoIcons=yes +OutputBaseFilename=installer [Files] ; We flag all files with "restartreplace" et al primarily for the benefit -- 2.45.2