bug 531786 - Application Name (Fennec) should not be hardcoded in installer file (setup.ini) r=mfinkle,robstrong
authorAlex Pakhotin <alexp@mozilla.com>
Sat, 05 Dec 2009 16:22:26 -0800
changeset 65997 c7946928628e61851a578cfd7e9f8ba4095ae6d5
parent 65996 8bd13f238209255b9f133c63d023aa6e31314fed
child 65998 7b196f107af4c2f7bb2b1aba3a1c3261a9ace684
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, robstrong
bugs531786
bug 531786 - Application Name (Fennec) should not be hardcoded in installer file (setup.ini) r=mfinkle,robstrong
mobile/installer/Makefile.in
mobile/locales/Makefile.in
mobile/locales/en-US/installer/setup.ini
--- a/mobile/installer/Makefile.in
+++ b/mobile/installer/Makefile.in
@@ -184,15 +184,15 @@ endif
 ifeq ($(OS_ARCH),WINCE)
 
 VSINSTALLDIR ?= $(error VSINSTALLDIR not set, must be set to the Visual Studio install directory)
 
 UNPACKAGE = $(LIBXUL_DIST)/xulrunner*$(PKG_SUFFIX)
 
 installer: stage-package package-xulrunner
 	$(NSINSTALL) -D $(DIST)/$(PKG_PATH)
-	$(NSINSTALL) $(srcdir)/../locales/$(AB_CD)/installer/setup.ini $(DIST)
-	cd $(DIST) && mv $(MOZ_PKG_DIR)/xulrunner/uninstall.exe $(MOZ_PKG_DIR)/ && 7z a $(PKG_PATH)$(PKG_BASENAME).7z $(MOZ_PKG_DIR) setup.ini -x!$(MOZ_PKG_DIR)/xulrunner/xulrunner-stub-installer.sfx && cat $(MOZ_PKG_DIR)/xulrunner/xulrunner-stub-installer.sfx $(PKG_PATH)$(PKG_BASENAME).7z>$(PKG_PATH)$(PKG_BASENAME).exe && rm $(PKG_PATH)$(PKG_BASENAME).7z && rm setup.ini && $(ZIP) -r9D $(PACKAGE) $(MOZ_PKG_DIR)
+	$(NSINSTALL) $(DIST)/$(MOZ_PKG_DIR)/setup.ini $(DIST)
+	cd $(DIST) && mv $(MOZ_PKG_DIR)/xulrunner/uninstall.exe $(MOZ_PKG_DIR)/ && 7z a $(PKG_PATH)$(PKG_BASENAME).7z $(MOZ_PKG_DIR) setup.ini -x!$(MOZ_PKG_DIR)/xulrunner/xulrunner-stub-installer.sfx -x!$(MOZ_PKG_DIR)/setup.ini && cat $(MOZ_PKG_DIR)/xulrunner/xulrunner-stub-installer.sfx $(PKG_PATH)$(PKG_BASENAME).7z>$(PKG_PATH)$(PKG_BASENAME).exe && rm $(PKG_PATH)$(PKG_BASENAME).7z && rm setup.ini && $(ZIP) -r9D $(PACKAGE) $(MOZ_PKG_DIR)
 
 endif
 
 # relative to $(DIST)
 UPLOAD_EXTRA_FILES += ../mobile/$(DEB_PKG_NAME)
--- a/mobile/locales/Makefile.in
+++ b/mobile/locales/Makefile.in
@@ -140,16 +140,30 @@ UPDATER_INI := $(addprefix $(LOCALE_SRCD
 endif
 libs:: $(UPDATER_INI)
 	cat $< | \
 	  sed -e "s/^InfoText=/Info=/" -e "s/^TitleText=/Title=/" | \
 	  sed -e "s/%MOZ_APP_DISPLAYNAME%/$(MOZ_APP_DISPLAYNAME)/" > \
 	  $(FINAL_TARGET)/updater.ini
 endif
 
+ifdef WINCE_WINDOWS_MOBILE
+ifdef LOCALE_MERGEDIR
+SETUP_INI := $(firstword $(wildcard $(LOCALE_MERGEDIR)/installer/setup.ini) \
+       $(wildcard $(LOCALE_SRCDIR)/installer/setup.ini) \
+       $(srcdir)/en-US/installer/setup.ini )
+else
+SETUP_INI := $(addprefix $(LOCALE_SRCDIR)/,installer/setup.ini)
+endif
+libs:: $(SETUP_INI)
+	cat $< | \
+	  sed -e "s/%MOZ_APP_DISPLAYNAME%/$(MOZ_APP_DISPLAYNAME)/" > \
+	  $(FINAL_TARGET)/setup.ini
+endif
+
 # When we unpack fennec on MacOS X the platform.ini and application.ini are in slightly
 # different locations that on all other platforms
 ifeq (Darwin, $(OS_ARCH))
 GECKO_PLATFORM_INI_PATH="$(STAGEDIST)/../Frameworks/XUL.framework/Versions/$(MOZILLA_VERSION)/platform.ini"
 FENNEC_APPLICATION_INI_PATH="$(STAGEDIST)/../Resources/application.ini"
 else
 GECKO_PLATFORM_INI_PATH="$(STAGEDIST)/xulrunner/platform.ini"
 FENNEC_APPLICATION_INI_PATH="$(STAGEDIST)/application.ini"
--- a/mobile/locales/en-US/installer/setup.ini
+++ b/mobile/locales/en-US/installer/setup.ini
@@ -1,17 +1,17 @@
 ; This file is in the UTF-8 encoding
 [Strings]
-AppShortName=Fennec
-AppLongName=Mozilla Fennec
-WindowCaption=Mozilla Fennec Setup
-InstallTo=Install Fennec to
+AppShortName=%MOZ_APP_DISPLAYNAME%
+AppLongName=Mozilla %MOZ_APP_DISPLAYNAME%
+WindowCaption=Mozilla %MOZ_APP_DISPLAYNAME% Setup
+InstallTo=Install %MOZ_APP_DISPLAYNAME% to
 Install=Install
 Cancel=Cancel
-InstalledSuccessfully=Mozilla Fennec has been installed successfully.
+InstalledSuccessfully=Mozilla %MOZ_APP_DISPLAYNAME% has been installed successfully.
 ExtractionError=Archive extraction error:
 ThereWereErrors=There were errors during installation:
 CreatingUserProfile=Creating user profile. Please wait...
-UninstallCaption=Mozilla Fennec Uninstall
+UninstallCaption=Mozilla %MOZ_APP_DISPLAYNAME% Uninstall
 FilesWillBeRemoved=All files will be removed from
 AreYouSure=Are you sure?
-InstallationNotFound=Mozilla Fennec installation not found.
-UninstalledSuccessfully=Mozilla Fennec has been uninstalled successfully.
+InstallationNotFound=Mozilla %MOZ_APP_DISPLAYNAME% installation not found.
+UninstalledSuccessfully=Mozilla %MOZ_APP_DISPLAYNAME% has been uninstalled successfully.