From 86522166e082b2defaea541747ecdce0f1149fe5 Mon Sep 17 00:00:00 2001
From: Bernd Wachter <bwachter-tmw@lart.info>
Date: Sun, 31 Jan 2010 20:23:23 +0100
Subject: Remove support for building/packaging two binaries

---
 packaging/windows/setup.nsi | 30 +-----------------------------
 1 file changed, 1 insertion(+), 29 deletions(-)

(limited to 'packaging')

diff --git a/packaging/windows/setup.nsi b/packaging/windows/setup.nsi
index 6c0eafe5..5a8513c5 100644
--- a/packaging/windows/setup.nsi
+++ b/packaging/windows/setup.nsi
@@ -3,9 +3,8 @@
 ; like the old install script.
 ;
 ; DLLDIR - directory containing required dlls
-; EXEDIR - directory containing mana.exe (and maybe mana-ea.exe)
+; EXEDIR - directory containing mana.exe
 ; EXESUFFIX - offset to SRCDIR pointing to a directory containing mana.exe
-; COMBINED_BUILD - set to one to include mana.exe and mana-ea.exe
 ; PRODUCT_VERSION - software version
 ; UPX - upx binary name
 ;
@@ -38,9 +37,6 @@ SetCompressor /SOLID lzma
 
 ;--- (and without !defines ) ---
 !System "${UPX} --best --crp-ms=999999 --compress-icons=0 --nrv2d ${EXEDIR}\mana.exe"
-!ifdef COMBINED_BUILD
-  !System "${UPX} --best --crp-ms=999999 --compress-icons=0 --nrv2d ${EXEDIR}\mana-ea.exe"
-!endif
 
 ; HM NIS Edit helper defines
 !define PRODUCT_NAME "Mana"
@@ -50,9 +46,6 @@ SetCompressor /SOLID lzma
 !define PRODUCT_PUBLISHER "Mana Development Team"
 !define PRODUCT_WEB_SITE "http://manasource.org"
 !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\mana.exe"
-!ifdef COMBINED_BUILD
-!define PRODUCT_DIR_REGKEY_EA "Software\Microsoft\Windows\CurrentVersion\App Paths\mana-ea.exe"
-!endif
 !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
 !define PRODUCT_UNINST_ROOT_KEY "HKLM"
 
@@ -173,9 +166,6 @@ Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
 OutFile "mana-${PRODUCT_VERSION}-win32.exe"
 InstallDir "$PROGRAMFILES\Mana"
 InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
-!ifdef COMBINED_BUILD
-  InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY_EA}" ""
-!endif
 ShowInstDetails show
 ShowUnInstDetails show
 
@@ -192,10 +182,6 @@ Section "Core files (required)" SecCore
   CreateDirectory "$SMPROGRAMS\Mana"
   CreateShortCut "$SMPROGRAMS\Mana\Mana.lnk" "$INSTDIR\mana.exe"
   CreateShortCut "$DESKTOP\Mana.lnk" "$INSTDIR\mana.exe"
-  !ifdef COMBINED_BUILD
-    CreateShortCut "$SMPROGRAMS\Mana\Mana (Eathena).lnk" "$INSTDIR\mana-ea.exe"
-    CreateShortCut "$DESKTOP\Mana (Eathena).lnk" "$INSTDIR\mana-ea.exe"
-  !endif
   CreateDirectory "$INSTDIR\data"
   CreateDirectory "$INSTDIR\data\fonts"
   CreateDirectory "$INSTDIR\data\graphics"
@@ -209,9 +195,6 @@ Section "Core files (required)" SecCore
   SetOutPath "$INSTDIR"
 
   File "${EXEDIR}\mana.exe"
-  !ifdef COMBINED_BUILD
-    File "${EXEDIR}\mana-ea.exe"
-  !endif
   File "${DLLDIR}\*.dll"
   File "${SRCDIR}\AUTHORS"
   File "${SRCDIR}\COPYING"
@@ -273,10 +256,6 @@ Section -Post
   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
-  !ifdef COMBINED_BUILD
-    WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\mana-ea.exe"
-    WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\mana-ea.exe"
-  !endif
 SectionEnd
 
 Function un.onInit
@@ -291,10 +270,6 @@ Section Uninstall
   Delete "$SMPROGRAMS\Mana\Uninstall.lnk"
   Delete "$DESKTOP\Mana.lnk"
   Delete "$SMPROGRAMS\Mana\Mana.lnk"
-  !ifdef COMBINED_BUILD
-    Delete "$DESKTOP\Mana (Eathena).lnk"
-    Delete "$SMPROGRAMS\Mana\Mana (Eathena).lnk"
-  !endif
   Delete "$SMPROGRAMS\Mana\Website.lnk"
   Delete "$SMPROGRAMS\Mana\Readme.lnk"
   Delete "$SMPROGRAMS\Mana\FAQ.lnk"
@@ -309,8 +284,5 @@ Section Uninstall
 
   DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
   DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
-  !ifdef COMBINED_BUILD
-    DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
-  !endif
   SetAutoClose true
 SectionEnd
-- 
cgit v1.2.3-70-g09d2