Patchwork D8060: packaging: set the FileVersion field in the Inno installer executable

login
register
mail settings
Submitter phabricator
Date Feb. 2, 2020, midnight
Message ID <0f5836a4263ce1886f2bfd4bde36b0d7@localhost.localdomain>
Download mbox | patch
Permalink /patch/44870/
State Not Applicable
Headers show

Comments

phabricator - Feb. 2, 2020, midnight
Closed by commit rHGf37971c31067: packaging: set the FileVersion field in the Inno installer executable (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8060?vs=19807&id=19820

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8060/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8060

AFFECTED FILES
  contrib/packaging/hgpackaging/inno.py
  contrib/packaging/inno/mercurial.iss

CHANGE DETAILS




To: mharbison72, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/contrib/packaging/inno/mercurial.iss b/contrib/packaging/inno/mercurial.iss
--- a/contrib/packaging/inno/mercurial.iss
+++ b/contrib/packaging/inno/mercurial.iss
@@ -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
diff --git a/contrib/packaging/hgpackaging/inno.py b/contrib/packaging/hgpackaging/inno.py
--- a/contrib/packaging/hgpackaging/inno.py
+++ b/contrib/packaging/hgpackaging/inno.py
@@ -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'))