packaging: stop installing i18n files
authorGregory Szorc <gregory.szorc@gmail.com>
Wed, 23 Oct 2019 12:15:42 -0700
changeset 43522 ce96be208ea4
parent 43521 ea5e7726fee0
child 43523 c21aca51b392
packaging: stop installing i18n files The WiX installer has been shipping the content of the i18n/ directory since it was introduced in 2010 in 1e022c88a0a5. And the installer was subsequently refactored to only ship the .po files and hggettext. The .po files and the hggettext script are only used at build time to produce .mo files, which Mercurial does use at run-time. It doesn't make sense to install these files on Windows. So this commit stops doing that. This change further converges the file layout of the Inno and WiX installers. Differential Revision: https://phab.mercurial-scm.org/D7165
contrib/packaging/hgpackaging/wix.py
contrib/packaging/wix/guids.wxi
contrib/packaging/wix/i18n.wxs
contrib/packaging/wix/mercurial.wxs
--- a/contrib/packaging/hgpackaging/wix.py	Wed Oct 23 11:54:22 2019 -0700
+++ b/contrib/packaging/hgpackaging/wix.py	Wed Oct 23 12:15:42 2019 -0700
@@ -28,7 +28,6 @@
     ('dist.wxs', r'dist'),
     ('doc.wxs', r'doc'),
     ('help.wxs', r'mercurial\help'),
-    ('i18n.wxs', r'i18n'),
     ('locale.wxs', r'mercurial\locale'),
     ('templates.wxs', r'mercurial\templates'),
 ]
--- a/contrib/packaging/wix/guids.wxi	Wed Oct 23 11:54:22 2019 -0700
+++ b/contrib/packaging/wix/guids.wxi	Wed Oct 23 12:15:42 2019 -0700
@@ -22,9 +22,6 @@
   <?define help.root.guid = {9FA957DB-6DFE-44f2-AD03-293B2791CF17} ?>
   <?define help.internals.guid = {2DD7669D-0DB8-4C39-9806-78E6475E7ACC} ?>
 
-  <!-- i18n.wxs -->
-  <?define i18nFolder.guid = {1BF8026D-CF7C-4174-AEE6-D6B7BF119248} ?>
-
   <!-- templates.wxs -->
   <?define templates.root.guid = {437FD55C-7756-4EA0-87E5-FDBE75DC8595} ?>
   <?define templates.atom.guid = {D30E14A5-8AF0-4268-8B00-00BEE9E09E39} ?>
--- a/contrib/packaging/wix/i18n.wxs	Wed Oct 23 11:54:22 2019 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
-
-  <?include guids.wxi ?>
-  <?include defines.wxi ?>
-
-  <?define hg_po_langs =
-    da;de;el;fr;it;ja;pt_BR;ro;ru;sv;zh_CN;zh_TW
-  ?>
-
-  <Fragment>
-    <DirectoryRef Id="INSTALLDIR">
-      <Directory Id="i18ndir" Name="i18n" FileSource="$(var.SourceDir)">
-        <Component Id="i18nFolder" Guid="$(var.i18nFolder.guid)" Win64='$(var.IsX64)'>
-          <File Name="hggettext" KeyPath="yes" />
-          <?foreach LANG in $(var.hg_po_langs) ?>
-            <File Id="hg.$(var.LANG).po"
-                  Name="$(var.LANG).po"
-            />
-          <?endforeach?>
-        </Component>
-      </Directory>
-    </DirectoryRef>
-  </Fragment>
-
-</Wix>
--- a/contrib/packaging/wix/mercurial.wxs	Wed Oct 23 11:54:22 2019 -0700
+++ b/contrib/packaging/wix/mercurial.wxs	Wed Oct 23 12:15:42 2019 -0700
@@ -136,7 +136,6 @@
       <?endif?>
       <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'>
         <ComponentGroupRef Id='localeFolder' />
-        <ComponentRef Id='i18nFolder' />
       </Feature>
       <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'>
         <ComponentGroupRef Id='docFolder' />