mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-02-02 09:47:04 +03:00
msi: use ProductVersion compatible with Windows Installer
Windows Installer expects version of form major.minor.build in order to perform updates. Following Daniel Berrange suggestion, compute a ProductVersion compatible with this scheme by shifting virt-viewer "micro" release number and adding the extra "buildid".
This commit is contained in:
parent
460a463c81
commit
c8e5b8e3b0
14
configure.ac
14
configure.ac
@ -201,6 +201,20 @@ fi
|
||||
AC_ARG_WITH([buildid],
|
||||
AS_HELP_STRING([--with-buildid=id], [Set additional build version details]))
|
||||
AC_DEFINE_UNQUOTED([BUILDID], "$with_buildid", [Build version details])
|
||||
if test "x$with_buildid" != x; then
|
||||
AC_SUBST([BUILDID], "-$with_buildid")
|
||||
fi
|
||||
|
||||
major=`echo $PACKAGE_VERSION | cut -d. -f1`
|
||||
minor=`echo $PACKAGE_VERSION | cut -d. -f2`
|
||||
micro=`echo $PACKAGE_VERSION | cut -d. -f3`
|
||||
buildid=`echo $with_buildid | cut -d. -f1`
|
||||
if test "x$buildid" = x; then
|
||||
buildid=0
|
||||
fi
|
||||
build=`expr $micro \* 256 + $buildid`
|
||||
WINDOWS_PRODUCTVERSION="$major.$minor.$build"
|
||||
AC_SUBST([WINDOWS_PRODUCTVERSION])
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
|
||||
<?define Version = "@VERSION@"?>
|
||||
<?define Version = "@WINDOWS_PRODUCTVERSION@"?>
|
||||
<?define Arch = "@WIXL_ARCH@"?>
|
||||
<?if $(var.Arch) = "x64"?>
|
||||
<?define GLIB_ARCH = "win64"?>
|
||||
@ -22,7 +22,7 @@
|
||||
|
||||
<?define UpgradeCode = "5B027138-1A63-49E6-877E-055E5EEC1903"?>
|
||||
<Product Id="*"
|
||||
Name="VirtViewer $(var.Version) ($(var.ArchString))"
|
||||
Name="VirtViewer @VERSION@@BUILDID@ ($(var.ArchString))"
|
||||
Manufacturer="$(env.MANUFACTURER)"
|
||||
Version="$(var.Version)"
|
||||
UpgradeCode="$(var.UpgradeCode)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user