Skip to content

Commit 87406aa

Browse files
committed
Merge pull request #6214
0a32a93 OSX: use "Bitcoin Core" as Bundle Display Name (Jonas Schnelli) a2241ea [OSX] revert renaming of Bitcoin-Qt.app (Jonas Schnelli)
2 parents f00b623 + 0a32a93 commit 87406aa

File tree

9 files changed

+25
-13
lines changed

9 files changed

+25
-13
lines changed

Makefile.am

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ BITCOIN_QT_BIN=$(top_builddir)/src/qt/bitcoin-qt$(EXEEXT)
1414
BITCOIN_CLI_BIN=$(top_builddir)/src/bitcoin-cli$(EXEEXT)
1515
BITCOIN_WIN_INSTALLER=$(PACKAGE)-$(PACKAGE_VERSION)-win$(WINDOWS_BITS)-setup$(EXEEXT)
1616

17-
OSX_APP=Bitcoin-Core.app
17+
OSX_APP=Bitcoin-Qt.app
1818
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/detached-sig-create.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
ROOTDIR=dist
5-
BUNDLE="${ROOTDIR}/Bitcoin Core.app"
5+
BUNDLE="${ROOTDIR}/Bitcoin-Qt.app"
66
CODESIGN=codesign
77
TEMPDIR=sign.temp
88
TEMPLIST=${TEMPDIR}/signatures.txt

contrib/macdeploy/fancy.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<integer>370</integer>
2323
<integer>156</integer>
2424
</array>
25-
<key>Bitcoin Core.app</key>
25+
<key>Bitcoin-Qt.app</key>
2626
<array>
2727
<integer>128</integer>
2828
<integer>156</integer>

contrib/macdeploy/macdeployqtplus

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ if os.path.exists("dist"):
596596

597597
# ------------------------------------------------
598598

599-
target = os.path.join("dist", "Bitcoin Core.app")
599+
target = os.path.join("dist", "Bitcoin-Qt.app")
600600

601601
if verbose >= 2:
602602
print "+ Copying source bundle +"
@@ -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

doc/build-osx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Creating a release build
100100
------------------------
101101
You can ignore this section if you are building `bitcoind` for your own use.
102102

103-
bitcoind/bitcoin-cli binaries are not included in the Bitcoin-Core.app bundle.
103+
bitcoind/bitcoin-cli binaries are not included in the Bitcoin-Qt.app bundle.
104104

105105
If you are building `bitcoind` or `Bitcoin-Qt` for others, your build machine should be set up
106106
as follows for maximum compatibility:
@@ -111,7 +111,7 @@ All dependencies should be compiled with these flags:
111111
-arch x86_64
112112
-isysroot $(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
113113

114-
Once dependencies are compiled, see [doc/release-process.md](release-process.md) for how the Bitcoin-Core.app
114+
Once dependencies are compiled, see [doc/release-process.md](release-process.md) for how the Bitcoin-Qt.app
115115
bundle is packaged and signed to create the .dmg disk image that is distributed.
116116

117117
Running

share/certs/PrivateKeyNotes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ signing requests.
77

88
For OSX, the private key was generated by Keychain.app on Gavin's main work machine.
99
The key and certificate is in a separate, passphrase-protected keychain file that is
10-
unlocked to sign the Bitcoin-Core.app bundle.
10+
unlocked to sign the Bitcoin-Qt.app bundle.
1111

1212
For Windows, the private key was generated by Firefox running on Gavin's main work machine.
1313
The key and certificate were exported into a separate, passphrase-protected PKCS#12 file, and
@@ -17,7 +17,7 @@ Threat analysis
1717
--
1818

1919
Gavin is a single point of failure. He could be coerced to divulge the secret signing keys,
20-
allowing somebody to distribute a Bitcoin-Core.app or bitcoin-qt-setup.exe with a valid
20+
allowing somebody to distribute a Bitcoin-Qt.app or bitcoin-qt-setup.exe with a valid
2121
signature but containing a malicious binary.
2222

2323
Or the machine Gavin uses to sign the binaries could be compromised, either remotely or

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)