This makes the process of editing the file much more pleasant and removes duplicate code. Fixed collecting twisted package which brings both build speed improvements but also decreases package size, as it stops PyInstaller from bundling tests (actually, some tests might even execute during import and break build if they're designed to throw!) used by PyInstaller Closes: https://github.com/deluge-torrent/deluge/pull/342
= 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 ==
-
Build and Install Deluge on Windows.
-
Run the pyinstaller from the deluge\packaging\win directory.spec:
pyinstaller --clean delugewin.spec --distpath .\packaging\win\freezeThe result is a PyInstaller version of Deluge in
packaging\win\freeze. -
Run the NSIS script:
64-bit python:
makensis /Darch=x64 deluge-win-installer.nsi32-bit python:
makensis /Darch=x86 deluge-win-installer.nsiNote: If you don't specify arch defaults to trying x64
The result is a standalone installer in the packaging\win directory.