summaryrefslogtreecommitdiffstats
path: root/packaging/win/README.md
blob: 272792c3f0131277fdb34c0ad297467543f6e91a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
= Deluge Installer for Windows =

Instructions for building the Deluge NSIS Installer for Windows Vista/7/8/8.1/10/11.

== Dependencies ==

- Deluge build: https://deluge.readthedocs.io/en/latest/depends.html
- PyInstaller: https://pypi.org/project/pyinstaller/
- NSIS: http://nsis.sourceforge.net/Download

== Build Steps ==

1.  Build and Install Deluge on Windows.
2.  Run pyinstaller from the deluge\packaging\win directory:

    `pyinstaller --clean delugewin.spec --distpath freeze`

    The result is a PyInstaller version of Deluge in `packaging\win\freeze`.

3.  Run the NSIS scripts:

    `python setup_nsis.py`

    64-bit python:

    `makensis /Darch=x64 deluge-win-installer.nsi`

    32-bit python:

    `makensis /Darch=x86 deluge-win-installer.nsi`

    Note: If you don't specify arch defaults to trying x64

The result is a standalone installer in the `packaging\win` directory.