diff --git a/toolkit/mozapps/installer/make-eme.mk b/toolkit/mozapps/installer/make-eme.mk deleted file mode 100644 index 739703cfda59..000000000000 --- a/toolkit/mozapps/installer/make-eme.mk +++ /dev/null @@ -1,16 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -include $(MOZILLA_DIR)/toolkit/mozapps/installer/signing.mk - -ifdef MOZ_SIGN_CMD - ifeq (,$(filter-out WINNT Darwin,$(OS_ARCH))) - # The first argument to this macro is the directory where the - # plugin-container binary exists, and the second is where voucher.bin will - # be generated. If the second argument is not specified, it defaults to the - # same as the first. - MAKE_SIGN_EME_VOUCHER = $(PYTHON) $(MOZILLA_DIR)/python/eme/gen-eme-voucher.py -input $(1)/$(MOZ_CHILD_PROCESS_NAME) -output $(or $(2),$(1))/voucher.bin && \ - $(MOZ_SIGN_CMD) -f emevoucher "$(or $(2),$(1))/voucher.bin" - endif -endif diff --git a/toolkit/mozapps/installer/packager.mk b/toolkit/mozapps/installer/packager.mk index 1d93c521c0cc..a6d01bcd2ec6 100644 --- a/toolkit/mozapps/installer/packager.mk +++ b/toolkit/mozapps/installer/packager.mk @@ -4,7 +4,6 @@ include $(MOZILLA_DIR)/toolkit/mozapps/installer/package-name.mk include $(MOZILLA_DIR)/toolkit/mozapps/installer/upload-files.mk -include $(MOZILLA_DIR)/toolkit/mozapps/installer/make-eme.mk # This is how we create the binary packages we release to the public. @@ -22,12 +21,11 @@ endif @echo 'Staging installer files...' @$(NSINSTALL) -D $(DEPTH)/installer-stage/core @cp -av $(DIST)/$(MOZ_PKG_DIR)$(_BINPATH)/. $(DEPTH)/installer-stage/core + @(cd $(DEPTH)/installer-stage/core && $(CREATE_PRECOMPLETE_CMD)) ifdef MOZ_SIGN_PREPARED_PACKAGE_CMD # The && true is necessary to make sure Pymake spins a shell $(MOZ_SIGN_PREPARED_PACKAGE_CMD) $(DEPTH)/installer-stage && true endif - $(call MAKE_SIGN_EME_VOUCHER,$(DEPTH)/installer-stage/core) - @(cd $(DEPTH)/installer-stage/core && $(CREATE_PRECOMPLETE_CMD)) ifeq (gonk,$(MOZ_WIDGET_TOOLKIT)) ELF_HACK_FLAGS = --fill diff --git a/toolkit/mozapps/installer/packager.py b/toolkit/mozapps/installer/packager.py index 2d744db3fa2d..7cc6b460d051 100644 --- a/toolkit/mozapps/installer/packager.py +++ b/toolkit/mozapps/installer/packager.py @@ -26,6 +26,7 @@ from mozpack.errors import errors import mozpack.path as mozpath import buildconfig from argparse import ArgumentParser +from createprecomplete import generate_precomplete import os from StringIO import StringIO import subprocess @@ -317,6 +318,8 @@ def main(): f.preload(log[key]) copier.copy(args.destination) + generate_precomplete(os.path.normpath(os.path.join(args.destination, + respath))) if __name__ == '__main__': diff --git a/toolkit/mozapps/installer/upload-files.mk b/toolkit/mozapps/installer/upload-files.mk index 623435cce1aa..5dde04caf3f7 100644 --- a/toolkit/mozapps/installer/upload-files.mk +++ b/toolkit/mozapps/installer/upload-files.mk @@ -239,19 +239,15 @@ endif ifdef MOZ_SIGN_PREPARED_PACKAGE_CMD ifeq (Darwin, $(OS_ARCH)) - MAKE_PACKAGE = $(or $(call MAKE_SIGN_EME_VOUCHER,$(MOZ_PKG_DIR)$(_BINPATH)/$(MOZ_CHILD_PROCESS_NAME).app/Contents/MacOS,$(MOZ_PKG_DIR)$(_RESPATH)),true) \ - && (cd $(MOZ_PKG_DIR)$(_RESPATH) && $(CREATE_PRECOMPLETE_CMD)) \ - && cd ./$(PKG_DMG_SOURCE) && $(MOZ_SIGN_PREPARED_PACKAGE_CMD) $(MOZ_MACBUNDLE_NAME) \ + MAKE_PACKAGE = cd ./$(PKG_DMG_SOURCE) && $(MOZ_SIGN_PREPARED_PACKAGE_CMD) $(MOZ_MACBUNDLE_NAME) \ && cd $(PACKAGE_BASE_DIR) && $(INNER_MAKE_PACKAGE) else MAKE_PACKAGE = $(MOZ_SIGN_PREPARED_PACKAGE_CMD) $(MOZ_PKG_DIR) \ - && $(or $(call MAKE_SIGN_EME_VOUCHER,$(MOZ_PKG_DIR)),true) \ - && (cd $(MOZ_PKG_DIR)$(_RESPATH) && $(CREATE_PRECOMPLETE_CMD)) \ && $(INNER_MAKE_PACKAGE) endif #Darwin else - MAKE_PACKAGE = (cd $(MOZ_PKG_DIR)$(_RESPATH) && $(CREATE_PRECOMPLETE_CMD)) && $(INNER_MAKE_PACKAGE) + MAKE_PACKAGE = $(INNER_MAKE_PACKAGE) endif ifdef MOZ_SIGN_PACKAGE_CMD