Show More
@@ -5,52 +5,35 b' Building the Inno installer requires a W' | |||||
5 |
|
5 | |||
6 | The following system dependencies must be installed: |
|
6 | The following system dependencies must be installed: | |
7 |
|
7 | |||
8 | * Python 2.7 (download from https://www.python.org/downloads/) |
|
|||
9 | * Microsoft Visual C++ Compiler for Python 2.7 |
|
|||
10 | (https://www.microsoft.com/en-us/download/details.aspx?id=44266) |
|
|||
11 | * Inno Setup (http://jrsoftware.org/isdl.php) version 5.4 or newer. |
|
8 | * Inno Setup (http://jrsoftware.org/isdl.php) version 5.4 or newer. | |
12 | Be sure to install the optional Inno Setup Preprocessor feature, |
|
9 | Be sure to install the optional Inno Setup Preprocessor feature, | |
13 | which is required. |
|
10 | which is required. | |
14 |
* Python 3. |
|
11 | * Python 3.6+ (to run the ``packaging.py`` script) | |
15 |
|
12 | |||
16 | Building |
|
13 | Building | |
17 | ======== |
|
14 | ======== | |
18 |
|
15 | |||
19 | The ``packaging.py`` script automates the process of producing an |
|
16 | The ``packaging.py`` script automates the process of producing an Inno | |
20 |
|
|
17 | installer. It manages fetching and configuring non-system dependencies | |
21 | non-system dependencies (such as py2exe, gettext, and various |
|
18 | (such as gettext, and various Python packages). It can be run from a | |
22 | Python packages). |
|
19 | basic cmd.exe Window (i.e. activating the MSBuildTools environment is | |
23 |
|
20 | not required). | ||
24 | The script requires an activated ``Visual C++ 2008`` command prompt. |
|
|||
25 | A shortcut to such a prompt was installed with ``Microsoft Visual C++ |
|
|||
26 | Compiler for Python 2.7``. From your Start Menu, look for |
|
|||
27 | ``Microsoft Visual C++ Compiler Package for Python 2.7`` then launch |
|
|||
28 | either ``Visual C++ 2008 32-bit Command Prompt`` or |
|
|||
29 | ``Visual C++ 2008 64-bit Command Prompt``. |
|
|||
30 |
|
21 | |||
31 | From the prompt, change to the Mercurial source directory. e.g. |
|
22 | From the prompt, change to the Mercurial source directory. e.g. | |
32 | ``cd c:\src\hg``. |
|
23 | ``cd c:\src\hg``. | |
33 |
|
24 | |||
34 |
Next, invoke ``packaging.py`` to produce an Inno installer. |
|
25 | Next, invoke ``packaging.py`` to produce an Inno installer.:: | |
35 | need to supply the path to the Python interpreter to use.:: |
|
|||
36 |
|
26 | |||
37 | $ py -3 contrib\packaging\packaging.py \ |
|
27 | $ py -3 contrib\packaging\packaging.py \ | |
38 | inno --python c:\python27\python.exe |
|
28 | inno --pyoxidizer-target x86_64-pc-windows-msvc | |
39 |
|
||||
40 | .. note:: |
|
|||
41 |
|
||||
42 | The script validates that the Visual C++ environment is |
|
|||
43 | active and that the architecture of the specified Python |
|
|||
44 | interpreter matches the Visual C++ environment and errors |
|
|||
45 | if not. |
|
|||
46 |
|
|
29 | ||
47 | If everything runs as intended, dependencies will be fetched and |
|
30 | If everything runs as intended, dependencies will be fetched and | |
48 | configured into the ``build`` sub-directory, Mercurial will be built, |
|
31 | configured into the ``build`` sub-directory, Mercurial will be built, | |
49 | and an installer placed in the ``dist`` sub-directory. The final |
|
32 | and an installer placed in the ``dist`` sub-directory. The final line | |
50 |
|
|
33 | of output should print the name of the generated installer. | |
51 |
|
34 | |||
52 | Additional options may be configured. Run |
|
35 | Additional options may be configured. Run ``packaging.py inno --help`` | |
53 |
|
|
36 | to see a list of program flags. | |
54 |
|
37 | |||
55 | MinGW |
|
38 | MinGW | |
56 | ===== |
|
39 | ===== |
@@ -12,50 +12,36 b' that do not have this requirement.' | |||||
12 | Requirements |
|
12 | Requirements | |
13 | ============ |
|
13 | ============ | |
14 |
|
14 | |||
15 |
Building the WiX installer |
|
15 | Building the WiX installer requires a Windows machine. | |
16 | dependencies must be installed: |
|
|||
17 |
|
16 | |||
18 | * Python 2.7 (download from https://www.python.org/downloads/) |
|
17 | The following system dependencies must be installed: | |
19 | * Microsoft Visual C++ Compiler for Python 2.7 |
|
18 | ||
20 | (https://www.microsoft.com/en-us/download/details.aspx?id=44266) |
|
19 | * Python 3.6+ (to run the ``packaging.py`` script) | |
21 | * Python 3.5+ (to run the ``packaging.py`` script) |
|
|||
22 |
|
20 | |||
23 | Building |
|
21 | Building | |
24 | ======== |
|
22 | ======== | |
25 |
|
23 | |||
26 | The ``packaging.py`` script automates the process of producing an MSI |
|
24 | The ``packaging.py`` script automates the process of producing an MSI | |
27 | installer. It manages fetching and configuring non-system dependencies |
|
25 | installer. It manages fetching and configuring non-system dependencies | |
28 |
(such as |
|
26 | (such as gettext, and various Python packages). It can be run from a | |
29 |
|
27 | basic cmd.exe Window (i.e. activating the MSBuildTools environment is | ||
30 | The script requires an activated ``Visual C++ 2008`` command prompt. |
|
28 | not required). | |
31 | A shortcut to such a prompt was installed with ``Microsoft Visual |
|
|||
32 | C++ Compiler for Python 2.7``. From your Start Menu, look for |
|
|||
33 | ``Microsoft Visual C++ Compiler Package for Python 2.7`` then |
|
|||
34 | launch either ``Visual C++ 2008 32-bit Command Prompt`` or |
|
|||
35 | ``Visual C++ 2008 64-bit Command Prompt``. |
|
|||
36 |
|
29 | |||
37 | From the prompt, change to the Mercurial source directory. e.g. |
|
30 | From the prompt, change to the Mercurial source directory. e.g. | |
38 | ``cd c:\src\hg``. |
|
31 | ``cd c:\src\hg``. | |
39 |
|
32 | |||
40 |
Next, invoke ``packaging.py`` to produce an MSI installer. |
|
33 | Next, invoke ``packaging.py`` to produce an MSI installer.:: | |
41 | to supply the path to the Python interpreter to use.:: |
|
|||
42 |
|
34 | |||
43 | $ py -3 contrib\packaging\packaging.py \ |
|
35 | $ py -3 contrib\packaging\packaging.py \ | |
44 | wix --python c:\python27\python.exe |
|
36 | wix --pyoxidizer-target x86_64-pc-windows-msvc | |
45 |
|
||||
46 | .. note:: |
|
|||
47 |
|
||||
48 | The script validates that the Visual C++ environment is active and |
|
|||
49 | that the architecture of the specified Python interpreter matches the |
|
|||
50 | Visual C++ environment. An error is raised otherwise. |
|
|||
51 |
|
|
37 | ||
52 | If everything runs as intended, dependencies will be fetched and |
|
38 | If everything runs as intended, dependencies will be fetched and | |
53 | configured into the ``build`` sub-directory, Mercurial will be built, |
|
39 | configured into the ``build`` sub-directory, Mercurial will be built, | |
54 | and an installer placed in the ``dist`` sub-directory. The final line |
|
40 | and an installer placed in the ``dist`` sub-directory. The final line | |
55 | of output should print the name of the generated installer. |
|
41 | of output should print the name of the generated installer. | |
56 |
|
42 | |||
57 |
Additional options may be configured. Run ``packaging.py wix --help`` |
|
43 | Additional options may be configured. Run ``packaging.py wix --help`` | |
58 | see a list of program flags. |
|
44 | to see a list of program flags. | |
59 |
|
45 | |||
60 | Relationship to TortoiseHG |
|
46 | Relationship to TortoiseHG | |
61 | ========================== |
|
47 | ========================== |
General Comments 0
You need to be logged in to leave comments.
Login now