Bug 1278042 - If update is disabled, don't copy LaunchServices. r?spohl draft
authorMichael Kaply <mozilla@kaply.com>
Mon, 27 Mar 2017 09:48:35 -0500
changeset 551873 f10eb332fb5228f691d5b91acab3d8839a38690f
parent 551860 763dfe42b86142b0c25f939fc0a927dacbb905da
child 621655 aaffa7adc4e57a39b37b41a66f48f2968753bde5
push id51175
push usermozilla@kaply.com
push dateMon, 27 Mar 2017 15:31:02 +0000
reviewersspohl
bugs1278042
milestone55.0a1
Bug 1278042 - If update is disabled, don't copy LaunchServices. r?spohl MozReview-Commit-ID: DWZxmVU0Qrf
browser/app/Makefile.in
browser/installer/package-manifest.in
--- a/browser/app/Makefile.in
+++ b/browser/app/Makefile.in
@@ -92,12 +92,14 @@ tools repackage:: $(DIST)/bin/$(MOZ_APP_
 	sed -e 's/%MAC_APP_NAME%/$(MAC_APP_NAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | iconv -f UTF-8 -t UTF-16 > $(dist_dest)/$(LPROJ)/InfoPlist.strings
 	rsync -a --exclude-from='$(srcdir)/macbuild/Contents/MacOS-files.in' $(DIST)/bin/ $(dist_dest)/Contents/Resources
 	rsync -a --include-from='$(srcdir)/macbuild/Contents/MacOS-files.in' --exclude '*' $(DIST)/bin/ $(dist_dest)/Contents/MacOS
 	$(RM) $(dist_dest)/Contents/MacOS/$(MOZ_APP_NAME)
 	rsync -aL $(DIST)/bin/$(MOZ_APP_NAME) $(dist_dest)/Contents/MacOS
 	cp -RL $(DIST)/branding/firefox.icns $(dist_dest)/Contents/Resources/firefox.icns
 	cp -RL $(DIST)/branding/document.icns $(dist_dest)/Contents/Resources/document.icns
 	$(MKDIR) -p $(dist_dest)/Contents/Library/LaunchServices
+ifdef MOZ_UPDATER
 	mv -f $(dist_dest)/Contents/MacOS/updater.app/Contents/MacOS/org.mozilla.updater $(dist_dest)/Contents/Library/LaunchServices
 	ln -s ../../../../Library/LaunchServices/org.mozilla.updater $(dist_dest)/Contents/MacOS/updater.app/Contents/MacOS/org.mozilla.updater
+endif
 	printf APPLMOZB > $(dist_dest)/Contents/PkgInfo
 endif
--- a/browser/installer/package-manifest.in
+++ b/browser/installer/package-manifest.in
@@ -30,17 +30,19 @@
 ; Equals Contents/Resources/ on Mac OS X and is equivalent to @BINPATH@ on other
 ; platforms.
 
 #filter substitution
 
 #ifdef XP_MACOSX
 ; Mac bundle stuff
 @APPNAME@/Contents/Info.plist
+#ifdef MOZ_UPDATER
 @APPNAME@/Contents/Library/LaunchServices
+#endif
 @APPNAME@/Contents/PkgInfo
 @RESPATH@/firefox.icns
 @RESPATH@/document.icns
 @RESPATH@/@LPROJ_ROOT@.lproj/*
 #endif
 
 [@AB_CD@]
 @RESPATH@/browser/chrome/@AB_CD@@JAREXT@