diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2012-11-22 22:48:32 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2012-11-22 23:19:05 +0000 |
commit | 5d43c2ac944f318874470a3beda951174faa01e1 (patch) | |
tree | 1d959dff4ebed8ee8647c1f352b0b5124eb61c22 /win32/deluge-win32-installer.nsi | |
parent | 845b95d88f7065986a68e79c8645fb6a22dfdff7 (diff) | |
download | deluge-5d43c2ac9.tar.gz deluge-5d43c2ac9.tar.bz2 deluge-5d43c2ac9.zip |
Update bbfreeze and nsis scripts for win32 packaging
bbfreeze script:
* Creates a VERSION.tmp file for use by nsis script
* Includes all theme, icon and locale files. Closes #2096 & #2145
* Add email.mime.multipart and email.mime.text. Closes #2074
* deluged.exe and deluge-web.exe will no longer show a cmd window and created
deluged-debug.exe and deluge-web-debug.exe as replacements if still needed
* Overridden bbfreeze gtk recipe thus no longer requiring file editing.
* Remove unnecessary python module includes
nsis script:
* Deluge version now based upon bbfreeze output
* Installer will warn if deluge already running. Closes #1217
* Removed deluged and deluge-web shortcuts from start menu
* Increased compression level for lzma
Diffstat (limited to 'win32/deluge-win32-installer.nsi')
-rw-r--r-- | win32/deluge-win32-installer.nsi | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/win32/deluge-win32-installer.nsi b/win32/deluge-win32-installer.nsi index 735992af5..e4e0811d1 100644 --- a/win32/deluge-win32-installer.nsi +++ b/win32/deluge-win32-installer.nsi @@ -1,5 +1,5 @@ # Deluge Windows installer script -# Version 0.4 28-Apr-2009 +# Version 0.6 22-Nov-2012 # Copyright (C) 2009 by # Jesper Lund <mail@jesperlund.com> @@ -26,21 +26,26 @@ # # Set default compressor -SetCompressor lzma +SetCompressor /FINAL /SOLID lzma +SetCompressorDictSize 64 ### ### --- The PROGRAM_VERSION !define need to be updated with new Deluge versions --- ### # Script version; displayed when running the installer -!define DELUGE_INSTALLER_VERSION "0.5" +!define DELUGE_INSTALLER_VERSION "0.6" # Deluge program information !define PROGRAM_NAME "Deluge" -!define PROGRAM_VERSION "1.3.5" +# Deluge program information +!searchparse /file VERSION.tmp `build_version = "` PROGRAM_VERSION `"` +!ifndef PROGRAM_VERSION + !error "Program Version Undefined" +!endif !define PROGRAM_WEB_SITE "http://deluge-torrent.org" -# Python files generated with bbfreeze (without DLLs from GTK+ runtime) +# Python files generated with bbfreeze !define DELUGE_PYTHON_BBFREEZE_OUTPUT_DIR "..\build-win32\deluge-bbfreeze-${PROGRAM_VERSION}" # --- Interface settings --- @@ -93,6 +98,15 @@ SetCompressor lzma # --- Functions --- +Function .onInit + System::Call 'kernel32::OpenMutex(i 0x100000, b 0, t "deluge") i .R0' + IntCmp $R0 0 notRunning + System::Call 'kernel32::CloseHandle(i $R0)' + MessageBox MB_OK|MB_ICONEXCLAMATION "Deluge is running. Please close it first" /SD IDOK + Abort + notRunning: +FunctionEnd + Function un.onUninstSuccess HideWindow MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer." @@ -126,7 +140,7 @@ ShowUnInstDetails show # Install main application Section "Deluge Bittorrent Client" Section1 SectionIn RO - + SetOutPath $INSTDIR File /r "${DELUGE_PYTHON_BBFREEZE_OUTPUT_DIR}\*.*" @@ -140,8 +154,6 @@ Section -StartMenu_Desktop_Links SetShellVarContext all CreateDirectory "$SMPROGRAMS\Deluge" CreateShortCut "$SMPROGRAMS\Deluge\Deluge.lnk" "$INSTDIR\deluge.exe" - CreateShortCut "$SMPROGRAMS\Deluge\Deluge daemon.lnk" "$INSTDIR\deluged.exe" - CreateShortCut "$SMPROGRAMS\Deluge\Deluge webUI.lnk" "$INSTDIR\deluge-web.exe" CreateShortCut "$SMPROGRAMS\Deluge\Project homepage.lnk" "$INSTDIR\Homepage.url" CreateShortCut "$SMPROGRAMS\Deluge\Uninstall Deluge.lnk" "$INSTDIR\Deluge-uninst.exe" CreateShortCut "$DESKTOP\Deluge.lnk" "$INSTDIR\deluge.exe" @@ -194,11 +206,9 @@ LangString DESC_Section3 ${LANG_ENGLISH} "Select this option to have Deluge hand Section Uninstall RmDir /r "$INSTDIR" - + SetShellVarContext all Delete "$SMPROGRAMS\Deluge\Deluge.lnk" - Delete "$SMPROGRAMS\Deluge\Deluge daemon.lnk" - Delete "$SMPROGRAMS\Deluge\Deluge webUI.lnk" Delete "$SMPROGRAMS\Deluge\Uninstall Deluge.lnk" Delete "$SMPROGRAMS\Deluge\Project homepage.lnk" Delete "$DESKTOP\Deluge.lnk" |