Update Win32 Installer readme
Also remove unneeded StartX.exe Conflicts: win32/Win32 README.txt
This commit is contained in:
parent
9360378ae9
commit
d030850638
BIN
win32/StartX.exe
BIN
win32/StartX.exe
Binary file not shown.
|
@ -1,61 +1,54 @@
|
||||||
Instructions for building the Win32 installer
|
= Deluge Installer for Windows =
|
||||||
---------------------------------------------
|
|
||||||
|
Instructions for building the Deluge NSIS Installer for Windows XP/Vista/7.
|
||||||
Dependencies:
|
|
||||||
- Deluge build: http://dev.deluge-torrent.org/wiki/Installing/Source
|
== Dependencies ==
|
||||||
- Bbfreeze: http://pypi.python.org/pypi/bbfreeze
|
* Deluge build: http://dev.deluge-torrent.org/wiki/Installing/Source#WindowsDependencies
|
||||||
- StartX: http://www.naughter.com/startx.html
|
* Bbfreeze: http://pypi.python.org/pypi/bbfreeze
|
||||||
- NSIS: http://nsis.sourceforge.net/Main_Page
|
* NSIS: http://nsis.sourceforge.net/Download
|
||||||
|
|
||||||
The assumption in the following is that Python 2.6 is installed in C:\Python26.
|
== Build Steps ==
|
||||||
The GTK+ runtime libraries are installed separately (anywhere, in the Windows PATH).
|
|
||||||
|
1. Build Deluge on Windows.
|
||||||
1) Build Deluge on Windows
|
|
||||||
|
2. Verify/update the Deluge version in the win32 packaging scripts.
|
||||||
2) Use a slightly hacked bbfreeze to create a standalone "executable" which does not need the the Python libs
|
|
||||||
|
bbfreeze script - Edit 'build_version' variable in:
|
||||||
The modification is to add these lines to:
|
|
||||||
|
win32/deluge-bbfreeze.py
|
||||||
C:\Python26\Lib\site-packages\bbfreeze-0.96.5-py2.6-win32.egg\bbfreeze\recipes.py
|
|
||||||
|
NSIS script - Edit 'PROGRAM_VERSION' variable in:
|
||||||
Right at the top of the Python function 'recipe_gtk_and_friends':
|
|
||||||
return True
|
win32/deluge-win32-installer.nsi
|
||||||
|
|
||||||
We want to include all the gtk libraries in the installer so that users don't
|
3. Modify bbfreeze program.
|
||||||
require a separate GTK+ installation.
|
|
||||||
|
We want to include all the gtk libraries in the installer so that users don't
|
||||||
3) Edit the 'build_version' variable in the Python script:
|
require a separate GTK+ installation so we need to slightly modify bbfreeze.
|
||||||
|
|
||||||
win32/build-bbfreeze.py
|
The modification is to add a line to bbfreeze\recipes.py, usually located here:
|
||||||
|
|
||||||
and run the script from the win32 directory:
|
C:\Python26\Lib\site-packages\bbfreeze-*-py2.6-win32.egg\bbfreeze\recipes.py
|
||||||
|
|
||||||
python build-bbfreeze.py
|
Find the line containing 'def recipe_gtk_and_friends' and after it add:
|
||||||
|
|
||||||
The script places the bbfreeze'd version of deluge in
|
return True
|
||||||
|
|
||||||
build-win32/deluge-bbfreeze-build_version
|
4. Run the bbfreeze script from the win32 directory:
|
||||||
|
|
||||||
Note: the build-bbfreeze.py script assumes that Python 2.6 is installed in C:\Python26,
|
python deluge-bbfreeze.py
|
||||||
otherwise the 'python_path' variable should be changed.
|
|
||||||
|
The script places the bbfreeze'd version of Deluge in
|
||||||
|
|
||||||
4) Edit the variable 'PROGRAM_VERSION' in the NSIS script
|
build-win32/deluge-bbfreeze-build_version
|
||||||
|
|
||||||
win32/deluge-win32-installer.nsi
|
Note: The assumption for this script is that Python 2.6 is installed
|
||||||
|
in 'C:\Python26' otherwise the 'python_path' variable should be changed.
|
||||||
and run the NSIS script.
|
|
||||||
|
5. Run the NSIS script (right-click and choose `Compile with NSIS`)
|
||||||
The result is a standalone installer. The only dependency for the installer is the GTK+ runtime,
|
|
||||||
which is downloaded by the Deluge installer if it isn't installed in the system.
|
The result is a standalone installer in the `build-win32` directory.
|
||||||
|
|
||||||
The GTK+ installer is downloaded from http://download.deluge-torrent.org/windows/deps/
|
The Uninstaller will remove everything from the installation directory. The file
|
||||||
and placed in the user temp directory (not deleted after installation).
|
association for '.torrent' will also be removed but only if it's associated with Deluge
|
||||||
|
|
||||||
The post install script creates the deluge.cmd file using startX.exe with the correct path
|
|
||||||
and sets up the file association for .torrent.
|
|
||||||
|
|
||||||
|
|
||||||
5) The Uninstaller will remove everything from the installation directory. Also the file
|
|
||||||
association for '.torrent' will be removed but only if it's associated with Deluge
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue