view contrib/wix/dist.wxs @ 34962:a18eef03d879

run-tests: $TESTDIR can be something else than $PWD $TESTDIR is expected to be the directory were the test lives, and is often used to reference helper functions. However, it is now set to $PWD at test invocation time, so if `run-tests.py` is called from another folder, the test will fail. The solution is to force $TESTDIR to be the base directory of the test itself, irrespective of where the runner is called from.
author Matthieu Laneuville <matthieu.laneuville@octobus.net>
date Wed, 02 Aug 2017 13:27:45 +0900
parents e12c3049af8e
children 2025bf60adb2
line wrap: on
line source

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <?include guids.wxi ?>
  <?include defines.wxi ?>

  <Fragment>
    <DirectoryRef Id="INSTALLDIR" FileSource="$(var.SourceDir)">
      <Component Id="distOutput" Guid="$(var.dist.guid)" Win64='$(var.IsX64)'>
        <File Name="python27.dll" KeyPath="yes" />
      </Component>
      <Directory Id="libdir" Name="lib" FileSource="$(var.SourceDir)/lib">
        <Component Id="libOutput" Guid="$(var.lib.guid)" Win64='$(var.IsX64)'>
          <File Name="library.zip" KeyPath="yes" />
          <File Name="mercurial.cext.base85.pyd" />
          <File Name="mercurial.cext.bdiff.pyd" />
          <File Name="mercurial.cext.diffhelpers.pyd" />
          <File Name="mercurial.cext.mpatch.pyd" />
          <File Name="mercurial.cext.osutil.pyd" />
          <File Name="mercurial.cext.parsers.pyd" />
          <File Name="mercurial.zstd.pyd" />
          <File Name="hgext.fsmonitor.pywatchman.bser.pyd" />
          <File Name="pyexpat.pyd" />
          <File Name="bz2.pyd" />
          <File Name="select.pyd" />
          <File Name="unicodedata.pyd" />
          <File Name="_ctypes.pyd" />
          <File Name="_elementtree.pyd" />
          <File Name="_testcapi.pyd" />
          <File Name="_hashlib.pyd" />
          <File Name="_socket.pyd" />
          <File Name="_ssl.pyd" />
        </Component>
      </Directory>
    </DirectoryRef>
  </Fragment>

</Wix>