Bug 345338 Set app name in InfoPlist.strings during build. p=Stefan <stefanh@bluebottle.com>,r=Mark Mentovai
git-svn-id: svn://10.0.0.236/trunk@207927 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
af17e6d562
commit
555f5c939f
@ -233,8 +233,9 @@ libs:: $(PROGRAM)
|
||||
mkdir -p $(DIST)/$(APP_NAME).app/Contents/MacOS
|
||||
rsync -a --exclude CVS --exclude "*.in" $(srcdir)/macbuild/Contents $(DIST)/$(APP_NAME).app --exclude English.lproj
|
||||
mkdir -p $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj
|
||||
rsync -a --exclude CVS $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj
|
||||
sed -e "s/MOZ_APP_NAME/$(MOZ_APP_NAME)/" -e "s/MOZ_APP_DISPLAYNAME/$(MOZ_APP_DISPLAYNAME)/" -e "s/MOZ_APP_VERSION/$(MOZ_APP_VERSION)/" $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/$(APP_NAME).app/Contents/Info.plist
|
||||
rsync -a --exclude CVS --exclude "*.in" $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj
|
||||
sed -e "s/\@MOZ_APP_NAME\@/$(MOZ_APP_NAME)/" -e "s/\@MOZ_APP_DISPLAYNAME\@/$(MOZ_APP_DISPLAYNAME)/" -e "s/\@MOZ_APP_VERSION\@/$(MOZ_APP_VERSION)/" $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/$(APP_NAME).app/Contents/Info.plist
|
||||
sed -e "s/\@MOZ_APP_NAME\@/$(MOZ_APP_NAME)/" -e "s/\@MOZ_APP_DISPLAYNAME\@/$(MOZ_APP_DISPLAYNAME)/" -e "s/\@MOZ_APP_VERSION\@/$(MOZ_APP_VERSION)/" $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | iconv -f UTF-8 -t UTF-16 > $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj/InfoPlist.strings
|
||||
rsync -a $(DIST)/bin/ $(DIST)/$(APP_NAME).app/Contents/MacOS
|
||||
rm -f $(DIST)/$(APP_NAME).app/Contents/MacOS/$(PROGRAM)
|
||||
rsync -aL $(PROGRAM) $(DIST)/$(APP_NAME).app/Contents/MacOS
|
||||
|
||||
@ -5,15 +5,15 @@
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>MOZ_APP_NAME-bin</string>
|
||||
<string>@MOZ_APP_NAME@-bin</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.mozilla.MOZ_APP_NAME</string>
|
||||
<string>org.mozilla.@MOZ_APP_NAME@</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>MOZ_APP_VERSION</string>
|
||||
<string>@MOZ_APP_VERSION@</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>MOZ_APP_DISPLAYNAME</string>
|
||||
<string>@MOZ_APP_DISPLAYNAME@</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
@ -21,11 +21,11 @@
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>seamonkey.icns</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>MOZ_APP_VERSION</string>
|
||||
<string>@MOZ_APP_VERSION@</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>MOZ_APP_DISPLAYNAME MOZ_APP_VERSION, Copyright © 1998-2006 Contributors to Mozilla.org.</string>
|
||||
<string>@MOZ_APP_DISPLAYNAME@ @MOZ_APP_VERSION@, Copyright © 1998-2006 Contributors to mozilla.org</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright © 1998-2006 Contributors to Mozilla.org.</string>
|
||||
<string>Copyright © 1998-2006 Contributors to mozilla.org</string>
|
||||
<key>NSAppleScriptEnabled</key>
|
||||
<true/>
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
@ -59,7 +59,7 @@
|
||||
|
||||
<dict>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>MOZ_APP_DISPLAYNAME Preferences File</string>
|
||||
<string>@MOZ_APP_DISPLAYNAME@ Preferences File</string>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>None</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
@ -72,7 +72,7 @@
|
||||
|
||||
<dict>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>MOZ_APP_DISPLAYNAME Plugin</string>
|
||||
<string>@MOZ_APP_DISPLAYNAME@ Plugin</string>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>None</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
@ -91,7 +91,7 @@
|
||||
|
||||
<dict>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>MOZ_APP_DISPLAYNAME Command Line File</string>
|
||||
<string>@MOZ_APP_DISPLAYNAME@ Command Line File</string>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Viewer</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
@ -104,7 +104,7 @@
|
||||
|
||||
<dict>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>MOZ_APP_DISPLAYNAME Shared Library</string>
|
||||
<string>@MOZ_APP_DISPLAYNAME@ Shared Library</string>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>None</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
@ -122,7 +122,7 @@
|
||||
|
||||
<dict>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>MOZ_APP_DISPLAYNAME Binary File</string>
|
||||
<string>@MOZ_APP_DISPLAYNAME@ Binary File</string>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>None</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
|
||||
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
/* Localized versions of Info.plist keys */
|
||||
|
||||
CFBundleName = "@MOZ_APP_DISPLAYNAME@";
|
||||
NSHumanReadableCopyright = "Copyright © 1998-2006 Contributors to mozilla.org";
|
||||
Loading…
x
Reference in New Issue
Block a user