mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
Organised layout and added images
This commit is contained in:
parent
f7d001e7b8
commit
6a6f2998ed
1 changed files with 117 additions and 18 deletions
131
win32/deluge.nsi
131
win32/deluge.nsi
|
@ -15,15 +15,63 @@
|
||||||
; Default install dir
|
; Default install dir
|
||||||
InstallDir "$PROGRAMFILES"
|
InstallDir "$PROGRAMFILES"
|
||||||
|
|
||||||
; Dependencies
|
; Compress by default
|
||||||
|
SetCompressor lzma
|
||||||
|
|
||||||
|
; Brand
|
||||||
|
BrandingText "Deluge Windows Installer"
|
||||||
|
|
||||||
|
!ifndef NOINSTTYPES
|
||||||
|
InstType "Full"
|
||||||
|
InstType "Upgrade"
|
||||||
|
!endif
|
||||||
|
|
||||||
|
; Defines
|
||||||
|
|
||||||
|
; Base URL for installers
|
||||||
|
!define BASE "http://download.deluge-torrent.org/windows/deps/"
|
||||||
|
|
||||||
|
; Installer names
|
||||||
|
!define DELUGE_INSTALLER "deluge-1.1.3.win32-py2.5.msi"
|
||||||
|
!define PYTHON_INSTALLER "python-2.5.4.msi"
|
||||||
|
!define PYWIN32_INSTALLER "pywin32-212.win32-py2.5.exe"
|
||||||
|
!define GTK+_INSTALLER "gtk-2.12.9-win32-2.exe"
|
||||||
|
!define PYGTK_INSTALLER "pygtk-2.12.1-2.win32-py2.5.exe"
|
||||||
|
!define PYXDG_INSTALLER "pyxdg-0.17.win32-py2.5.exe"
|
||||||
|
!define SETUPTOOLS_INSTALLER "setuptools-0.6c9.win32-py2.5.exe"
|
||||||
|
!define LIBTORRENT_INSTALLER "python-libtorrent-0.14.2.win32-py2.5.msi"
|
||||||
|
!define LIBTORRENT_DLL "MSVCP71.DLL"
|
||||||
|
|
||||||
|
; Installer URLs
|
||||||
|
!define DELUGE_INSTALLER_URL "${BASE}\DELUGE_INSTALLER"
|
||||||
|
!define PYTHON_INSTALLER_URL "${BASE}\PYTHON_INSTALLER"
|
||||||
|
!define PYWIN32_INSTALLER_URL "${BASE}\PYWIN32_INSTALLER"
|
||||||
|
!define GTK+_INSTALLER_URL "${BASE}\GTK+_INSTALLER"
|
||||||
|
!define PYGTK_INSTALLER_URL "${BASE}\PYGTK_INSTALLER"
|
||||||
|
!define PYXDG_INSTALLER_URL "${BASE}\PYXDG_INSTALLER"
|
||||||
|
!define SETUPTOOLS_INSTALLER_URL "${BASE}\SETUPTOOLS_INSTALLER"
|
||||||
|
!define LIBTORRENT_INSTALLER_URL "${BASE}\LIBTORRENT_INSTALLER"
|
||||||
|
!define LIBTORRENT_DLL_URL "${BASE}\LIBTORRENT_DLL"
|
||||||
|
|
||||||
|
; Redefine macros/functions
|
||||||
|
!define download "NSISdl::download"
|
||||||
|
!define install "!insertmacro install"
|
||||||
|
|
||||||
!define LIBTORRENT "libtorrent.msi"
|
|
||||||
!define LIBTORRENT_URL "http://transact.dl.sourceforge.net/sourceforge/libtorrent/python-libtorrent-0.14.2.win32-py2.5.msi"
|
|
||||||
|
|
||||||
; Interface Settings
|
; Interface Settings
|
||||||
|
|
||||||
|
; Installer
|
||||||
|
!define MUI_ICON "..\deluge\data\pixmaps\deluge.ico"
|
||||||
|
!define MUI_HEADERIMAGE
|
||||||
|
!define MUI_HEADERIMAGE_BITMAP "installer-top.bmp"
|
||||||
|
!define MUI_WELCOMEFINISHPAGE_BITMAP "installer-side.bmp"
|
||||||
!define MUI_ABORTWARNING
|
!define MUI_ABORTWARNING
|
||||||
|
|
||||||
|
; Uninstaller
|
||||||
|
!define MUI_UNICON "..\deluge\data\pixmaps\deluge.ico"
|
||||||
|
!define MUI_HEADERIMAGE_UNBITMAP "installer-top.bmp"
|
||||||
|
!define MUI_WELCOMEFINISHPAGE_UNBITMAP "installer-side.bmp"
|
||||||
|
|
||||||
; Pages
|
; Pages
|
||||||
|
|
||||||
; Installation
|
; Installation
|
||||||
|
@ -48,30 +96,76 @@
|
||||||
|
|
||||||
; Installer Sections
|
; Installer Sections
|
||||||
|
|
||||||
Section "Deluge Core" deluge
|
SubSection /e "Core" core
|
||||||
|
|
||||||
|
Section "Deluge" deluge
|
||||||
|
|
||||||
SectionIn RO
|
SectionIn RO
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\Deluge"
|
${install} DELUGE_INSTALLER
|
||||||
|
|
||||||
WriteUninstaller "$INSTDIR\uninstall.exe"
|
WriteUninstaller "$INSTDIR\Deluge\uninstall.exe"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
SubSection /e "Dependencies" deps
|
SubSectionEnd
|
||||||
|
|
||||||
Section "Libtorrent" SecLibtorrent
|
SubSection /e "Dependencies" dependencies
|
||||||
|
|
||||||
|
Section "Python" python
|
||||||
|
|
||||||
SectionIn 1
|
SectionIn 1
|
||||||
|
|
||||||
; Download MSI
|
${install} PYTHON_INSTALLER
|
||||||
NSISdl::download ${LIBTORRENT_URL} "$TEMP\${LIBTORRENT}"
|
|
||||||
|
|
||||||
; Install MSI
|
SectionEnd
|
||||||
ExecWait 'msiexec /i "$TEMP\${LIBTORRENT}" /passive TARGETDIR="$INSTDIR\LibTorrent"'
|
|
||||||
|
|
||||||
; Clean up
|
Section "Python Win32 Extensions" pywin32
|
||||||
delete "$TEMP\${LIBTORRENT}"
|
|
||||||
|
SectionIn 1
|
||||||
|
|
||||||
|
${install} PYWIN32_INSTALLER
|
||||||
|
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
Section "GTK+ Runtime" gtk+
|
||||||
|
|
||||||
|
SectionIn 1
|
||||||
|
|
||||||
|
${install} GTK+_INSTALLER
|
||||||
|
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
Section "PyGTK" pygtk
|
||||||
|
|
||||||
|
SectionIn 1
|
||||||
|
|
||||||
|
${install} PYGTK_INSTALLER
|
||||||
|
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
Section "PyXdg" pyxdg
|
||||||
|
|
||||||
|
SectionIn 1
|
||||||
|
|
||||||
|
${install} PYXDG_INSTALLER
|
||||||
|
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
Section "Setuptools" setuptools
|
||||||
|
|
||||||
|
SectionIn 1
|
||||||
|
|
||||||
|
${install} SETUPTOOLS_INSTALLER
|
||||||
|
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
Section "libtorrent" libtorrent
|
||||||
|
|
||||||
|
SectionIn 1
|
||||||
|
|
||||||
|
${install} LIBTORRENT_INSTALLER
|
||||||
|
${install} LIBTORRENT_DLL
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
@ -91,8 +185,13 @@ SubSectionEnd
|
||||||
|
|
||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
|
|
||||||
Delete "$INSTDIR\uninstall.exe"
|
Delete "$INSTDIR\Deluge\uninstall.exe"
|
||||||
|
|
||||||
RMDir "$INSTDIR"
|
RMDir "$INSTDIR"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
; Macros
|
||||||
|
!macro install installer_name
|
||||||
|
${download} "${${installer_name}_URL}" "$TEMP\${${installer_name}}"
|
||||||
|
delete "$TEMP\${installer_name}"
|
||||||
|
!macroend
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue