Bug 1278042 - If update is disabled, don't copy LaunchServices. r=spohl

MozReview-Commit-ID: DWZxmVU0Qrf

--HG--
extra : rebase_source : 531a1e7bca364bd23eba0a48e0d80f698c142a69
This commit is contained in:
Michael Kaply 2017-03-27 09:48:35 -05:00
Родитель 7b66148fc2
Коммит 5d98501bcf
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -97,7 +97,9 @@ tools repackage:: $(DIST)/bin/$(MOZ_APP_NAME)
cp -RL $(DIST)/branding/firefox.icns $(dist_dest)/Contents/Resources/firefox.icns cp -RL $(DIST)/branding/firefox.icns $(dist_dest)/Contents/Resources/firefox.icns
cp -RL $(DIST)/branding/document.icns $(dist_dest)/Contents/Resources/document.icns cp -RL $(DIST)/branding/document.icns $(dist_dest)/Contents/Resources/document.icns
$(MKDIR) -p $(dist_dest)/Contents/Library/LaunchServices $(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 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 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 printf APPLMOZB > $(dist_dest)/Contents/PkgInfo
endif endif

Просмотреть файл

@ -35,7 +35,9 @@
#ifdef XP_MACOSX #ifdef XP_MACOSX
; Mac bundle stuff ; Mac bundle stuff
@APPNAME@/Contents/Info.plist @APPNAME@/Contents/Info.plist
#ifdef MOZ_UPDATER
@APPNAME@/Contents/Library/LaunchServices @APPNAME@/Contents/Library/LaunchServices
#endif
@APPNAME@/Contents/PkgInfo @APPNAME@/Contents/PkgInfo
@RESPATH@/firefox.icns @RESPATH@/firefox.icns
@RESPATH@/document.icns @RESPATH@/document.icns