pidgin/purple-plugin-pack

Parents 2f842b91d09d
Children 028735bf1c72
The start of an installer for this. It doesn't work and probably won't for a while (until i get motivated again), so feel free...
--- a/Makefile.mingw Sun Sep 21 05:21:44 2008 -0400
+++ b/Makefile.mingw Sun Nov 23 04:46:28 2008 -0500
@@ -4,6 +4,9 @@
# Description: Makefile for win32 (mingw) purple plugin pack
#
+PIDGIN_TREE_TOP ?= ../../..
+include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
+
VERSION := $(shell cat ./VERSION)
ALL_PLUGINS_LIST := $(shell python plugin_pack.py build_dirs purple,pidgin all)
@@ -28,6 +31,9 @@
fi; fi; \
done;
+installer: all
+ $(MAKENSIS) -DPP_VERSION="$(VERSION)" plugin-pack-installer.nsi
+
clean:
list='$(ALL_PLUGINS)'; for subdir in $$list; do \
if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \
Binary file nsis/header.bmp has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nsis/translations/english.nsh Sun Nov 23 04:46:28 2008 -0500
@@ -0,0 +1,17 @@
+;;
+;; english.nsh
+;;
+;; Default language strings for the Windows Purple Plugin Pack NSIS installer.
+;; Windows Code Page: 1252
+;; Language Code: 1033
+;;
+
+;; Startup Checks
+LangString PIDGIN_NEEDED ${LANG_ENGLISH} "The Purple Plugin Pack requires that Pidgin be installed. You must install Pidgin before install the Purple Plugin Pack."
+
+; Overrides for default text in windows:
+LangString WELCOME_TITLE ${LANG_ENGLISH} "Purple Plugin Pack v${PP_VERSION} Installer"
+
+LangString WELCOME_TEXT ${LANG_ENGLISH} "Note: This version of the plugin is designed for Pidgin ${PIDGIN_VERSION}, and will not install or function with versions of Pidgin having a different major version number.\r\n\r\nWhen you upgrade your version of Pidgin, you must uninstall or upgrade the Purple Plugin Pack as well.\r\n\r\n"
+
+;; vi: syntax=nsis
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/plugin_pack.nsi Sun Nov 23 04:46:28 2008 -0500
@@ -0,0 +1,66 @@
+; NSIS Script for the Purple Plugin Pack
+; Author Gary Kramlich
+; Based on the guifications2.x installer
+; Uses NSIS v2.0
+
+;Include Modern UI
+!include "MUI.nsh"
+
+!include "FileFunc.nsh"
+!insertmacro GetParameters
+!insertmacro GetOptions
+
+;---------
+; General
+;---------
+Name "Plugin Pack ${PP_VERSION}"
+CRCCheck On
+OutFile "purple-plugin-pack-${PP_VERSION}.exe"
+
+InstallDir "$PROGRAMFILES\pidgin"
+InstallDirRegKey HKLM SOFTWARE\pidgin ""
+
+ShowInstDetails show
+ShowUnInstDetails show
+SetCompressor /SOLID lzma
+
+!insertmacro MUI_RESERVEFILE_LANGDLL
+!define PP_UNINST_EXE "purple-plugin-pack-uninst.exe"
+
+
+; Pidgin helper stuff
+!addincludedir "${PIDGIN_TREE_TOP}\pidgin\win32\nsis"
+!include "pidgin-plugin.nsh"
+
+;---------------------------
+; UI Config
+;---------------------------
+!define MUI_HEADERIMAGE
+!define MUI_HEADERIMAGE_BITMAP "nsis\header.bmp"
+!define MUI_ABORTWARNING
+
+;---------------------------
+; Translations
+;---------------------------
+!insertmacro MUI_LANGUAGE "English"
+!include "nsis\translations\english.nsh"
+
+;---------------------------
+; Pages
+;---------------------------
+
+; Welcome
+!define MUI_WELCOMEPAGE_TITLE $(WELCOME_TITLE)
+!define MUI_WELCOMEPAGE_TEXT $(WELCOME_TEXT)
+!insertmacro MUI_PAGE_WELCOME
+
+;---------------------------
+; Sections
+;---------------------------
+Section -SecUninstallOld
+ ; Check install rights...
+ Call CheckUserInstallRights
+ Pop $R0
+
+ StrCmp $R0 "HKLM" rights_hklm
+ StrCmp $R0 "HKCU" rights_hkcu done