packaging: set the FileVersion field in the Inno installer executable
Previously, Properties > Details > File version showed "0.0.0.0". This appears
to be a longstanding issue, and not part of the refactoring this cycle.
Differential Revision: https://phab.mercurial-scm.org/D8060
--- a/contrib/packaging/hgpackaging/inno.py Sat Feb 01 00:32:46 2020 -0500
+++ b/contrib/packaging/hgpackaging/inno.py Sat Feb 01 00:41:37 2020 -0500
@@ -20,6 +20,7 @@
)
from .util import (
find_vc_runtime_files,
+ normalize_windows_version,
read_version_py,
)
@@ -156,6 +157,7 @@
version = read_version_py(source_dir)
args.append('/dVERSION=%s' % version)
+ args.append('/dQUAD_VERSION=%s' % normalize_windows_version(version))
args.append('/Odist')
args.append(str(inno_build_dir / 'mercurial.iss'))
--- a/contrib/packaging/inno/mercurial.iss Sat Feb 01 00:32:46 2020 -0500
+++ b/contrib/packaging/inno/mercurial.iss Sat Feb 01 00:41:37 2020 -0500
@@ -32,6 +32,7 @@
VersionInfoDescription=Mercurial distributed SCM (version {#VERSION})
VersionInfoCopyright=Copyright 2005-2020 Matt Mackall and others
VersionInfoCompany=Matt Mackall and others
+VersionInfoVersion={#QUAD_VERSION}
InternalCompressLevel=max
SolidCompression=true
SetupIconFile=../mercurial.ico