From 3a62cbace68d4c55a43d47dc9f4ef052a63bc0af Mon Sep 17 00:00:00 2001 From: Sitsofe Wheeler Date: Wed, 21 Feb 2018 14:41:14 +0000 Subject: [PATCH 1/1] windows: minor windows installer improvements - Stop hard coding fio version in the Windows installer build file and try and use the generated version instead - Make installer build use sys.BUILDARCH rather than env.FIO_ARCH - Change IO to I/O in descriptions to match other packages Signed-off-by: Sitsofe Wheeler --- os/windows/dobuild.cmd | 12 +++++++++++- os/windows/eula.rtf | Bin 1072 -> 1075 bytes os/windows/install.wxs | 8 ++++---- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/os/windows/dobuild.cmd b/os/windows/dobuild.cmd index fd54a9c6..ef12d82d 100644 --- a/os/windows/dobuild.cmd +++ b/os/windows/dobuild.cmd @@ -6,6 +6,16 @@ for /f "tokens=3" %%i in (..\..\FIO-VERSION-FILE) do ( set /a counter+=1 ) +for /f "tokens=2 delims=-" %%i in ("%FIO_VERSION%") do ( + set FIO_VERSION_NUMBERS=%%i +) + +if not defined FIO_VERSION_NUMBERS ( + echo Could not find version numbers in the string '%FIO_VERSION%' + echo Expected version to follow format 'fio-^([0-9]+.[0-9.]+^)' + goto end +) + if "%1"=="x86" set FIO_ARCH=x86 if "%1"=="x64" set FIO_ARCH=x64 @@ -16,7 +26,7 @@ if not defined FIO_ARCH ( goto end ) -"%WIX%bin\candle" -nologo -arch %FIO_ARCH% install.wxs +"%WIX%bin\candle" -nologo -arch %FIO_ARCH% -dFioVersionNumbers="%FIO_VERSION_NUMBERS%" install.wxs @if ERRORLEVEL 1 goto end "%WIX%bin\candle" -nologo -arch %FIO_ARCH% examples.wxs @if ERRORLEVEL 1 goto end diff --git a/os/windows/eula.rtf b/os/windows/eula.rtf index 1c929321d6875dce3fe09084b2f659aea04151f2..b2798bb5496f790005df8508d10f15fc3b24d7db 100755 GIT binary patch delta 20 bcmdnMv6*9oG9!z=ze34oHAXIGCSEQ8I@SbU delta 16 XcmdnYv4LZQG9$CULda%yMlNOmDJui^ diff --git a/os/windows/install.wxs b/os/windows/install.wxs index 577af553..73b28103 100755 --- a/os/windows/install.wxs +++ b/os/windows/install.wxs @@ -1,7 +1,7 @@ - + @@ -10,9 +10,9 @@ + UpgradeCode="2338A332-5511-43CF-B9BD-5C60496CCFCC" Version="$(var.FioVersionNumbers)"> @@ -48,7 +48,7 @@ - + -- 2.25.1