bug 557225 - add a bundle for the plugin process to make it not show up in the dock

@@ -575,7 +575,7 @@

--HG--
rename : toolkit/mozapps/update/updater/macbuild/Contents/Info.plist => ipc/app/macbuild/Contents/Info.plist.in
rename : toolkit/mozapps/update/updater/macbuild/Contents/PkgInfo => ipc/app/macbuild/Contents/PkgInfo
rename : toolkit/mozapps/update/updater/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in => ipc/app/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in
This commit is contained in:
Ted Mielczarek 2010-06-11 08:28:03 -04:00
parent 35429e8359
commit 0effa57b4a
4 changed files with 48 additions and 0 deletions

View File

@ -111,3 +111,25 @@ ifndef GNU_CC
LDFLAGS += /HEAP:0x40000
endif
endif
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
# Create an app bundle
MOZ_FIX_LINK_PATHS+=-Wl,-headerpad_max_install_names
# We need to fix the install names for the Gecko libraries we're linked to.
# They're all @loader_path/libfoo.dylib, but this binary lives in a bundle
# underneath that.
paren=\(
LIST_INSTALL_NAMES=$(shell otool -L $(PROGRAM) | grep "@loader_path" | tr -s '\t ' ' ' | cut -f1 -d$(paren) | xargs echo)
FIX_INSTALL_NAMES=$(foreach l,$(LIST_INSTALL_NAMES),-change "$l" "$(subst @loader_path,@loader_path/../../..,$l)")
libs::
$(NSINSTALL) -D $(DIST)/bin/$(PROGRAM).app
rsync -a -C --exclude "*.in" $(srcdir)/macbuild/Contents $(DIST)/bin/$(PROGRAM).app
sed -e "s/%PROGRAM%/$(PROGRAM)/" $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/bin/$(PROGRAM).app/Contents/Info.plist
sed -e "s/%APP_NAME%/$(MOZ_APP_DISPLAYNAME)/" $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | \
iconv -f UTF-8 -t UTF-16 > $(DIST)/bin/$(PROGRAM).app/Contents/Resources/English.lproj/InfoPlist.strings
$(NSINSTALL) -D $(DIST)/bin/$(PROGRAM).app/Contents/MacOS
install_name_tool $(FIX_INSTALL_NAMES) $(PROGRAM)
$(NSINSTALL) $(PROGRAM) $(DIST)/bin/$(PROGRAM).app/Contents/MacOS
rm -f $(DIST)/bin/$(PROGRAM)
endif

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>%PROGRAM%</string>
<key>CFBundleIdentifier</key>
<string>org.mozilla.plugincontainer</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSMinimumSystemVersion</key>
<string>10.5</string>
</dict>
</plist>

View File

@ -0,0 +1 @@
APPL????

View File

@ -0,0 +1,3 @@
/* Localized versions of Info.plist keys */
CFBundleName = "%APP_NAME% Software Update";