File tree 4 files changed +16
-4
lines changed
4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -111,9 +111,16 @@ osx_volname:
111
111
echo $(OSX_VOLNAME ) > $@
112
112
113
113
if BUILD_DARWIN
114
- $(OSX_DMG ) : $(OSX_APP_BUILT ) $(OSX_PACKAGING )
114
+ $(OSX_DMG ) : $(OSX_APP_BUILT ) $(OSX_PACKAGING ) $( OSX_BACKGROUND_IMAGE )
115
115
$(PYTHON ) $(OSX_DEPLOY_SCRIPT ) $(OSX_APP ) -add-qt-tr $(OSX_QT_TRANSLATIONS ) -translations-dir=$(QT_TRANSLATION_DIR ) -dmg -fancy $(OSX_FANCY_PLIST ) -verbose 2 -volname $(OSX_VOLNAME )
116
116
117
+ $(OSX_BACKGROUND_IMAGE ) .png : contrib/macdeploy/$(OSX_BACKGROUND_SVG )
118
+ sed ' s/PACKAGE_NAME/$(PACKAGE_NAME)/' < " $<" | $(RSVG_CONVERT ) -f png -d 36 -p 36 -o $@
119
+ $(OSX_BACKGROUND_IMAGE ) @2x.png : contrib/macdeploy/$(OSX_BACKGROUND_SVG )
120
+ sed ' s/PACKAGE_NAME/$(PACKAGE_NAME)/' < " $<" | $(RSVG_CONVERT ) -f png -d 72 -p 72 -o $@
121
+ $(OSX_BACKGROUND_IMAGE ) : $(OSX_BACKGROUND_IMAGE ) .png $(OSX_BACKGROUND_IMAGE ) @2x.png
122
+ tiffutil -cathidpicheck $^ -out $@
123
+
117
124
deploydir : $(OSX_DMG )
118
125
else
119
126
APP_DIST_DIR =$(top_builddir ) /dist
Original file line number Diff line number Diff line change @@ -319,6 +319,7 @@ case $host in
319
319
fi
320
320
fi
321
321
322
+ AC_PATH_PROGS ( [ RSVG_CONVERT] , [ rsvg-convert rsvg] ,rsvg-convert )
322
323
AC_CHECK_PROG ( [ BREW] ,brew , brew )
323
324
if test x$BREW = xbrew; then
324
325
dnl These Homebrew packages may be keg-only, meaning that they won't be found
Original file line number Diff line number Diff line change @@ -791,7 +791,7 @@ if config.dmg is not None:
791
791
except subprocess .CalledProcessError as e :
792
792
sys .exit (e .returncode )
793
793
794
- m = re .search ("/Volumes/(.+$)" , output )
794
+ m = re .search ("/Volumes/(.+$)" , output . decode () )
795
795
disk_root = m .group (0 )
796
796
disk_name = m .group (1 )
797
797
@@ -852,7 +852,7 @@ if config.dmg is not None:
852
852
"items_positions" : "\n " .join (items_positions )
853
853
}
854
854
if "window_bounds" in fancy :
855
- params ["window.bounds " ] = "," .join ([str (p ) for p in fancy ["window_bounds" ]])
855
+ params ["window_bounds " ] = "," .join ([str (p ) for p in fancy ["window_bounds" ]])
856
856
if "icon_size" in fancy :
857
857
params ["icon_size" ] = str (fancy ["icon_size" ])
858
858
if bg_path is not None :
@@ -868,7 +868,7 @@ if config.dmg is not None:
868
868
print (s )
869
869
870
870
p = subprocess .Popen (['osascript' , '-' ], stdin = subprocess .PIPE )
871
- p .communicate (input = s )
871
+ p .communicate (input = s . encode ( 'utf-8' ) )
872
872
if p .returncode :
873
873
print ("Error running osascript." )
874
874
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ Dependencies
18
18
19
19
brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config homebrew/versions/protobuf260 --c++11 qt5 libevent
20
20
21
+ In case you want to build the disk image with ` make deploy ` (.dmg / optional), you need RSVG
22
+
23
+ brew install librsvg
24
+
21
25
NOTE: Building with Qt4 is still supported, however, could result in a broken UI. Building with Qt5 is recommended.
22
26
23
27
Build Bitcoin Core
You can’t perform that action at this time.
0 commit comments