diff --git a/browser/confvars.sh b/browser/confvars.sh index 3f8858abec9..b8e64d4c7f0 100755 --- a/browser/confvars.sh +++ b/browser/confvars.sh @@ -12,10 +12,17 @@ if test "$OS_ARCH" = "WINNT"; then if ! test "$HAVE_64BIT_OS"; then MOZ_VERIFY_MAR_SIGNATURE=1 MOZ_MAINTENANCE_SERVICE=1 + if test "$MOZ_UPDATE_CHANNEL" = "nightly" -o \ + "$MOZ_UPDATE_CHANNEL" = "aurora" -o \ + "$MOZ_UPDATE_CHANNEL" = "beta" -o \ + "$MOZ_UPDATE_CHANNEL" = "release"; then + if ! test "$MOZ_DEBUG"; then + MOZ_STUB_INSTALLER=1 + fi + fi fi fi -MOZ_STUB_INSTALLER=1 MOZ_CHROME_FILE_FORMAT=omni MOZ_SAFE_BROWSING=1 MOZ_SERVICES_AITC=1 diff --git a/browser/locales/Makefile.in b/browser/locales/Makefile.in index 4912b0ce579..7bbc780c3e9 100644 --- a/browser/locales/Makefile.in +++ b/browser/locales/Makefile.in @@ -67,7 +67,9 @@ UNINSTALLER_PACKAGE_HOOK = $(RM) -r $(STAGEDIST)/uninstall; \ cp ../installer/windows/l10ngen/helper.exe $(STAGEDIST)/uninstall; \ $(RM) $(_ABS_DIST)/l10n-stage/setup.exe; \ cp ../installer/windows/l10ngen/setup.exe $(_ABS_DIST)/l10n-stage; \ - $(NSINSTALL) -D "$(_ABS_DIST)/$(PKG_INST_PATH)"; \ + $(NULL) + +STUB_HOOK = $(NSINSTALL) -D "$(_ABS_DIST)/$(PKG_INST_PATH)"; \ $(RM) "$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_STUB_BASENAME).exe"; \ cp ../installer/windows/l10ngen/stub.exe "$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_STUB_BASENAME).exe"; \ chmod 0755 "$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_STUB_BASENAME).exe"; \ diff --git a/configure.in b/configure.in index 3d4af2cad21..4e2b2c54da5 100644 --- a/configure.in +++ b/configure.in @@ -4374,6 +4374,19 @@ else fi fi +# The app update channel is 'default' when not supplied. The value is used in +# the application's confvars.sh so it must be set before confvars.sh is called. +MOZ_ARG_ENABLE_STRING([update-channel], +[ --enable-update-channel=CHANNEL + Select application update channel (default=default)], + MOZ_UPDATE_CHANNEL=`echo $enableval | tr A-Z a-z`) + +if test -z "$MOZ_UPDATE_CHANNEL"; then + MOZ_UPDATE_CHANNEL=default +fi +AC_DEFINE_UNQUOTED(MOZ_UPDATE_CHANNEL, $MOZ_UPDATE_CHANNEL) +AC_SUBST(MOZ_UPDATE_CHANNEL) + # Allow the application to influence configure with a confvars.sh script. AC_MSG_CHECKING([if app-specific confvars.sh exists]) @@ -6321,18 +6334,6 @@ if test -n "$MOZ_UPDATER"; then AC_DEFINE(MOZ_UPDATER) fi -# app update channel is 'default' when not supplied. -MOZ_ARG_ENABLE_STRING([update-channel], -[ --enable-update-channel=CHANNEL - Select application update channel (default=default)], - MOZ_UPDATE_CHANNEL=`echo $enableval | tr A-Z a-z`) - -if test -z "$MOZ_UPDATE_CHANNEL"; then - MOZ_UPDATE_CHANNEL=default -fi -AC_DEFINE_UNQUOTED(MOZ_UPDATE_CHANNEL, $MOZ_UPDATE_CHANNEL) -AC_SUBST(MOZ_UPDATE_CHANNEL) - # tools/update-packaging is not checked out by default. MOZ_ARG_ENABLE_BOOL(update-packaging, [ --enable-update-packaging diff --git a/toolkit/locales/l10n.mk b/toolkit/locales/l10n.mk index a3c08542407..2650a9c71c6 100644 --- a/toolkit/locales/l10n.mk +++ b/toolkit/locales/l10n.mk @@ -113,6 +113,10 @@ repackage-zip: libs-$(AB_CD) -$(PERL) -pi.old -e "s/en-US/$(AB_CD)/g" $(JARLOG_DIR_AB_CD)/*.jar.log # call a hook for apps to put their uninstall helper.exe into the package $(UNINSTALLER_PACKAGE_HOOK) +# call a hook for apps to build the stub installer +ifdef MOZ_STUB_INSTALLER + $(STUB_HOOK) +endif # copy xpi-stage over, but not install.rdf and chrome.manifest, # those are just for language packs cd $(DIST)/xpi-stage/locale-$(AB_CD) && \