From 89c2dc04a08b2af39fa2fe1e3e4c7e17724f30e0 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Tue, 16 Jul 2019 22:23:38 +0400 Subject: [PATCH] FS-11513: [Build-System] Fix Windows versioning. --- w32/Setup/FullVersion.cmd | 3 ++- w32/Setup/Setup.2017.wixproj | 11 +++++++++-- w32/switch_version.props | 11 ++++++++--- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/w32/Setup/FullVersion.cmd b/w32/Setup/FullVersion.cmd index 5cbec6a7e2..f98ee7360b 100644 --- a/w32/Setup/FullVersion.cmd +++ b/w32/Setup/FullVersion.cmd @@ -5,5 +5,6 @@ FOR /f "delims=" %%i in ('FIND /N "AC_INIT" ..\..\configure.ac') DO SET version_ FOR /f "tokens=2 delims=," %%a in ("%version_contained_string%") DO SET dirty_version=%%a SET almost_clean_version=%dirty_version:[=% SET version_with_spaces=%almost_clean_version:]=% -SET full_version=%version_with_spaces: =% +SET version_with_dash=%version_with_spaces: =% +FOR /f "tokens=1 delims=-" %%a in ("%version_with_dash%") DO SET full_version=%%a echo %full_version% \ No newline at end of file diff --git a/w32/Setup/Setup.2017.wixproj b/w32/Setup/Setup.2017.wixproj index db9b628d61..e740dc0521 100644 --- a/w32/Setup/Setup.2017.wixproj +++ b/w32/Setup/Setup.2017.wixproj @@ -926,7 +926,10 @@ - + + + + @@ -941,7 +944,10 @@ - + + + + @@ -969,6 +975,7 @@ +