Skip to content

Commit 6390a04

Browse files
committed
macdeploy: consolidate .DS_Store generation
Rather than two lots of logic doing roughly the same thing, dependent on if you're compiling on Linux or macOS, combine the .DS store generation into macdeployqtplus. This also removes the -fancy and -volname options.
1 parent 32347cd commit 6390a04

File tree

5 files changed

+104
-289
lines changed

5 files changed

+104
-289
lines changed

Makefile.am

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ OSX_DMG = $(OSX_VOLNAME).dmg
3636
OSX_BACKGROUND_SVG=background.svg
3737
OSX_BACKGROUND_IMAGE=background.tiff
3838
OSX_BACKGROUND_IMAGE_DPIS=36 72
39-
OSX_DSSTORE_GEN=$(top_srcdir)/contrib/macdeploy/custom_dsstore.py
4039
OSX_DEPLOY_SCRIPT=$(top_srcdir)/contrib/macdeploy/macdeployqtplus
41-
OSX_FANCY_PLIST=$(top_srcdir)/contrib/macdeploy/fancy.plist
4240
OSX_INSTALLER_ICONS=$(top_srcdir)/src/qt/res/icons/bitcoin.icns
4341
OSX_PLIST=$(top_builddir)/share/qt/Info.plist #not installed
4442

@@ -58,9 +56,8 @@ WINDOWS_PACKAGING = $(top_srcdir)/share/pixmaps/bitcoin.ico \
5856
$(top_srcdir)/share/pixmaps/nsis-wizard.bmp \
5957
$(top_srcdir)/doc/README_windows.txt
6058

61-
OSX_PACKAGING = $(OSX_DEPLOY_SCRIPT) $(OSX_FANCY_PLIST) $(OSX_INSTALLER_ICONS) \
59+
OSX_PACKAGING = $(OSX_DEPLOY_SCRIPT) $(OSX_INSTALLER_ICONS) \
6260
$(top_srcdir)/contrib/macdeploy/$(OSX_BACKGROUND_SVG) \
63-
$(OSX_DSSTORE_GEN) \
6461
$(top_srcdir)/contrib/macdeploy/detached-sig-apply.sh \
6562
$(top_srcdir)/contrib/macdeploy/detached-sig-create.sh
6663

@@ -116,7 +113,7 @@ osx_volname:
116113

117114
if BUILD_DARWIN
118115
$(OSX_DMG): $(OSX_APP_BUILT) $(OSX_PACKAGING) $(OSX_BACKGROUND_IMAGE)
119-
$(PYTHON) $(OSX_DEPLOY_SCRIPT) $(OSX_APP) -translations-dir=$(QT_TRANSLATION_DIR) -dmg -fancy $(OSX_FANCY_PLIST) -volname $(OSX_VOLNAME)
116+
$(PYTHON) $(OSX_DEPLOY_SCRIPT) $(OSX_APP) $(OSX_VOLNAME) -translations-dir=$(QT_TRANSLATION_DIR) -dmg
120117

121118
$(OSX_BACKGROUND_IMAGE).png: contrib/macdeploy/$(OSX_BACKGROUND_SVG)
122119
sed 's/PACKAGE_NAME/$(PACKAGE_NAME)/' < "$<" | $(RSVG_CONVERT) -f png -d 36 -p 36 -o $@
@@ -146,11 +143,8 @@ $(APP_DIST_DIR)/.background/$(OSX_BACKGROUND_IMAGE): $(OSX_BACKGROUND_IMAGE_DPIF
146143
$(MKDIR_P) $(@D)
147144
$(TIFFCP) -c none $(OSX_BACKGROUND_IMAGE_DPIFILES) $@
148145

149-
$(APP_DIST_DIR)/.DS_Store: $(OSX_DSSTORE_GEN)
150-
$(PYTHON) $< "$@" "$(OSX_VOLNAME)"
151-
152146
$(APP_DIST_DIR)/$(OSX_APP)/Contents/MacOS/Bitcoin-Qt: $(OSX_APP_BUILT) $(OSX_PACKAGING)
153-
INSTALLNAMETOOL=$(INSTALLNAMETOOL) OTOOL=$(OTOOL) STRIP=$(STRIP) $(PYTHON) $(OSX_DEPLOY_SCRIPT) $(OSX_APP) -translations-dir=$(QT_TRANSLATION_DIR)
147+
INSTALLNAMETOOL=$(INSTALLNAMETOOL) OTOOL=$(OTOOL) STRIP=$(STRIP) $(PYTHON) $(OSX_DEPLOY_SCRIPT) $(OSX_APP) $(OSX_VOLNAME) -translations-dir=$(QT_TRANSLATION_DIR)
154148

155149
deploydir: $(APP_DIST_EXTRAS)
156150
endif

contrib/macdeploy/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ The `macdeployqtplus` script should not be run manually. Instead, after building
66
make deploy
77
```
88

9-
During the deployment process, the disk image window will pop up briefly
10-
when the fancy settings are applied. This is normal, please do not interfere,
11-
the process will unmount the DMG and cleanup before finishing.
12-
13-
When complete, it will have produced `Bitcoin-Qt.dmg`.
9+
When complete, it will have produced `Bitcoin-Core.dmg`.
1410

1511
## SDK Extraction
1612

@@ -111,7 +107,7 @@ broken. Only the compression feature is currently used. Ideally, the creation co
111107
and `genisoimage` would no longer be necessary.
112108

113109
Background images and other features can be added to DMG files by inserting a
114-
`.DS_Store` before creation. This is generated by the script `contrib/macdeploy/custom_dsstore.py`.
110+
`.DS_Store` during creation.
115111

116112
As of OS X 10.9 Mavericks, using an Apple-blessed key to sign binaries is a requirement in
117113
order to satisfy the new Gatekeeper requirements. Because this private key cannot be

contrib/macdeploy/custom_dsstore.py

Lines changed: 0 additions & 58 deletions
This file was deleted.

contrib/macdeploy/fancy.plist

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)