| 1 |
Requirements |
| 2 |
============ |
| 3 |
|
| 4 |
Building the Inno installer requires a Windows machine. |
| 5 |
|
| 6 |
The following system dependencies must be installed: |
| 7 |
|
| 8 |
* Inno Setup (http://jrsoftware.org/isdl.php) version 5.4 or newer. |
| 9 |
Be sure to install the optional Inno Setup Preprocessor feature, |
| 10 |
which is required. |
| 11 |
* Python 3.8+ (to run the ``packaging.py`` script) |
| 12 |
|
| 13 |
Building |
| 14 |
======== |
| 15 |
|
| 16 |
The ``packaging.py`` script automates the process of producing an Inno |
| 17 |
installer. It manages fetching and configuring non-system dependencies |
| 18 |
(such as gettext, and various Python packages). It can be run from a |
| 19 |
basic cmd.exe Window (i.e. activating the MSBuildTools environment is |
| 20 |
not required). |
| 21 |
|
| 22 |
From the prompt, change to the Mercurial source directory. e.g. |
| 23 |
``cd c:\src\hg``. |
| 24 |
|
| 25 |
Next, invoke ``packaging.py`` to produce an Inno installer.:: |
| 26 |
|
| 27 |
$ py -3 contrib\packaging\packaging.py \ |
| 28 |
inno --pyoxidizer-target x86_64-pc-windows-msvc |
| 29 |
|
| 30 |
If everything runs as intended, dependencies will be fetched and |
| 31 |
configured into the ``build`` sub-directory, Mercurial will be built, |
| 32 |
and an installer placed in the ``dist`` sub-directory. The final line |
| 33 |
of output should print the name of the generated installer. |
| 34 |
|
| 35 |
Additional options may be configured. Run ``packaging.py inno --help`` |
| 36 |
to see a list of program flags. |
| 37 |
|
| 38 |
MinGW |
| 39 |
===== |
| 40 |
|
| 41 |
It is theoretically possible to generate an installer that uses |
| 42 |
MinGW. This isn't well tested and ``packaging.py`` and may properly |
| 43 |
support it. See old versions of this file in version control for |
| 44 |
potentially useful hints as to how to achieve this. |