Skip to content

Commit 0a32a93

Browse files
committed
OSX: use "Bitcoin Core" as Bundle Display Name
1 parent a2241ea commit 0a32a93

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

Makefile.am

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ OSX_DMG=Bitcoin-Core.dmg
1919
OSX_BACKGROUND_IMAGE=background.tiff
2020
OSX_DEPLOY_SCRIPT=$(top_srcdir)/contrib/macdeploy/macdeployqtplus
2121
OSX_FANCY_PLIST=$(top_srcdir)/contrib/macdeploy/fancy.plist
22+
OSX_BASE_LPROJ_DIR=$(top_srcdir)/contrib/macdeploy/Base.lproj/InfoPlist.strings
2223
OSX_INSTALLER_ICONS=$(top_srcdir)/src/qt/res/icons/bitcoin.icns
2324
OSX_PLIST=$(top_srcdir)/share/qt/Info.plist #not installed
2425
OSX_QT_TRANSLATIONS = da,de,es,hu,ru,uk,zh_CN,zh_TW
@@ -30,7 +31,7 @@ WINDOWS_PACKAGING = $(top_srcdir)/share/pixmaps/bitcoin.ico \
3031
$(top_srcdir)/share/pixmaps/nsis-wizard.bmp \
3132
$(top_srcdir)/doc/README_windows.txt
3233

33-
OSX_PACKAGING = $(OSX_DEPLOY_SCRIPT) $(OSX_FANCY_PLIST) $(OSX_INSTALLER_ICONS) \
34+
OSX_PACKAGING = $(OSX_DEPLOY_SCRIPT) $(OSX_FANCY_PLIST) $(OSX_INSTALLER_ICONS) $(OSX_BASE_LPROJ_DIR) \
3435
$(top_srcdir)/contrib/macdeploy/$(OSX_BACKGROUND_IMAGE) \
3536
$(top_srcdir)/contrib/macdeploy/DS_Store \
3637
$(top_srcdir)/contrib/macdeploy/detached-sig-apply.sh \
@@ -72,7 +73,7 @@ $(OSX_APP)/Contents/PkgInfo:
7273

7374
$(OSX_APP)/Contents/Resources/empty.lproj:
7475
$(MKDIR_P) $(@D)
75-
@touch $@
76+
@touch $@
7677

7778
$(OSX_APP)/Contents/Info.plist: $(OSX_PLIST)
7879
$(MKDIR_P) $(@D)
@@ -86,9 +87,13 @@ $(OSX_APP)/Contents/MacOS/Bitcoin-Qt: $(BITCOIN_QT_BIN)
8687
$(MKDIR_P) $(@D)
8788
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $< $@
8889

90+
$(OSX_APP)/Contents/Resources/Base.lproj/InfoPlist.strings: $(OSX_BASE_LPROJ_DIR)
91+
$(MKDIR_P) $(@D)
92+
$(INSTALL_DATA) $< $@
93+
8994
OSX_APP_BUILT=$(OSX_APP)/Contents/PkgInfo $(OSX_APP)/Contents/Resources/empty.lproj \
9095
$(OSX_APP)/Contents/Resources/bitcoin.icns $(OSX_APP)/Contents/Info.plist \
91-
$(OSX_APP)/Contents/MacOS/Bitcoin-Qt
96+
$(OSX_APP)/Contents/MacOS/Bitcoin-Qt $(OSX_APP)/Contents/Resources/Base.lproj/InfoPlist.strings
9297

9398
if BUILD_DARWIN
9499
$(OSX_DMG): $(OSX_APP_BUILT) $(OSX_PACKAGING)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ CFBundleDisplayName = "Bitcoin Core"; CFBundleName = "Bitcoin Core"; }

contrib/macdeploy/DS_Store

0 Bytes
Binary file not shown.

contrib/macdeploy/macdeployqtplus

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ if config.dmg is not None:
757757

758758
if fancy is None:
759759
try:
760-
runHDIUtil("create", dmg_name, srcfolder="dist", format="UDBZ", volname=app_bundle_name, ov=True)
760+
runHDIUtil("create", dmg_name, srcfolder="dist", format="UDBZ", volname="Bitcoin-Core", ov=True)
761761
except subprocess.CalledProcessError as e:
762762
sys.exit(e.returncode)
763763
else:
@@ -772,7 +772,7 @@ if config.dmg is not None:
772772
if verbose >= 3:
773773
print "Creating temp image for modification..."
774774
try:
775-
runHDIUtil("create", dmg_name + ".temp", srcfolder="dist", format="UDRW", size=size, volname=app_bundle_name, ov=True)
775+
runHDIUtil("create", dmg_name + ".temp", srcfolder="dist", format="UDRW", size=size, volname="Bitcoin-Core", ov=True)
776776
except subprocess.CalledProcessError as e:
777777
sys.exit(e.returncode)
778778

share/qt/Info.plist.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030

3131
<key>CFBundleExecutable</key>
3232
<string>Bitcoin-Qt</string>
33+
34+
<key>CFBundleName</key>
35+
<string>Bitcoin-Qt</string>
36+
37+
<key>LSHasLocalizedDisplayName</key>
38+
<true/>
3339

3440
<key>CFBundleIdentifier</key>
3541
<string>org.bitcoinfoundation.Bitcoin-Qt</string>

0 commit comments

Comments
 (0)