Pin Pyinstaller to latest v4.x until issue of aborting upon missing typelibs for various unbuilt gst-modules can be properly investigated and resolved. Specific error for one of the modules being:
`36738 INFO: Loading module hook 'hook-gi.repository.Gst.py' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\PyInstaller\\hooks'...
Traceback (most recent call last):
File "<string>", line 7, in <module>
gi.repository.GLib.GError: g-irepository-error-quark: Typelib file for namespace 'Gst', version '1.0' not found (0)
36870 ERROR: gi repository 'GIRepository 2.0' not found. Please make sure corresponding package is installed.
Traceback (most recent call last):
File "<string>", line 4, in <module>
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\gi\__init__.py", line 139, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gst not available`
Added `--no-index` to ensure pip doesn't install from Pypi
Closes: https://github.com/deluge-torrent/deluge/pull/386
= 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 pyinstaller from the deluge\packaging\win directory:
pyinstaller --clean delugewin.spec --distpath freezeThe result is a PyInstaller version of Deluge in
packaging\win\freeze. -
Run the NSIS scripts:
python setup_nsis.py64-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.