##// END OF EJS Templates
tests: use sha256line.py instead of /dev/random in test-censor.t (issue6858)...
tests: use sha256line.py instead of /dev/random in test-censor.t (issue6858) Sometimes the systems that run our test suite don't have enough entropy and they cannot produce target file of the expected size using /dev/random, which results in test failures. Switching to /dev/urandom would give us way more available data at the cost of it being less "random", but we don't really need to use entropy for this task at all, since we only care if the file size after compression is big enough to not be stored inline in the revlog. So let's use something that we already have used to generate this kind of data in other tests.

File last commit:

r50068:90f7d827 default
r52255:e7be2ddf stable
Show More
readme.rst
57 lines | 1.9 KiB | text/x-rst | RstLexer
Gregory Szorc
wix: functionality to automate building WiX installers...
r42087 WiX Installer
=============
The files in this directory are used to produce an MSI installer using
the WiX Toolset (http://wixtoolset.org/).
The MSI installers require elevated (admin) privileges due to the
installation of MSVC CRT libraries into the Windows system store. See
the Inno Setup installers in the ``inno`` sibling directory for installers
that do not have this requirement.
Requirements
============
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 Building the WiX installer requires a Windows machine.
Gregory Szorc
wix: functionality to automate building WiX installers...
r42087
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 The following system dependencies must be installed:
* Python 3.6+ (to run the ``packaging.py`` script)
Gregory Szorc
wix: functionality to automate building WiX installers...
r42087
Building
========
Gregory Szorc
packaging: consolidate CLI functionality into packaging.py...
r43913 The ``packaging.py`` script automates the process of producing an MSI
Gregory Szorc
wix: functionality to automate building WiX installers...
r42087 installer. It manages fetching and configuring non-system dependencies
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 (such as gettext, and various Python packages). It can be run from a
basic cmd.exe Window (i.e. activating the MSBuildTools environment is
not required).
Gregory Szorc
wix: functionality to automate building WiX installers...
r42087
From the prompt, change to the Mercurial source directory. e.g.
``cd c:\src\hg``.
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 Next, invoke ``packaging.py`` to produce an MSI installer.::
Gregory Szorc
wix: functionality to automate building WiX installers...
r42087
Matt Harbison
packaging: replace a documentation reference to `python3` on Windows...
r47179 $ py -3 contrib\packaging\packaging.py \
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 wix --pyoxidizer-target x86_64-pc-windows-msvc
Gregory Szorc
wix: functionality to automate building WiX installers...
r42087
If everything runs as intended, dependencies will be fetched and
configured into the ``build`` sub-directory, Mercurial will be built,
and an installer placed in the ``dist`` sub-directory. The final line
of output should print the name of the generated installer.
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 Additional options may be configured. Run ``packaging.py wix --help``
to see a list of program flags.
Gregory Szorc
wix: functionality to automate building WiX installers...
r42087
Relationship to TortoiseHG
==========================
TortoiseHG uses the WiX files in this directory.
The code for building TortoiseHG installers lives at
Matt Harbison
contrib: migrate off of a couple of bitbucket URLs...
r50068 https://foss.heptapod.net/mercurial/tortoisehg/thg-winbuild and is maintained by
Gregory Szorc
wix: functionality to automate building WiX installers...
r42087 Steve Borho (steve@borho.org).
When changing behavior of the WiX installer, be sure to notify
the TortoiseHG Project of the changes so they have ample time
provide feedback and react to those changes.