From d389515e82091a397e45d5249cdd1f73ab1b8da9 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Fri, 5 Feb 2016 18:53:43 +0000 Subject: [PATCH] Render NSIS wizard sidebar image --- Makefile.am | 4 ++-- share/setup.nsi.in | 4 ++-- src/Makefile.qt.include | 8 ++++++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index a637390678..ff9c7c36af 100644 --- a/Makefile.am +++ b/Makefile.am @@ -52,7 +52,7 @@ BIN_CHECKS=$(top_srcdir)/contrib/devtools/symbol-check.py \ WINDOWS_PACKAGING = src/qt/res/rendered_icons/bitcoin.ico \ $(top_srcdir)/share/pixmaps/nsis-header.bmp \ - $(top_srcdir)/share/pixmaps/nsis-wizard.bmp \ + src/qt/res/rendered_icons/nsis-wizard.bmp \ $(top_srcdir)/doc/README_windows.txt OSX_PACKAGING = $(OSX_DEPLOY_SCRIPT) $(OSX_FANCY_PLIST) $(OSX_INSTALLER_ICONS) \ @@ -90,7 +90,7 @@ $(OSX_APP)/Contents/Info.plist: $(OSX_PLIST) $(MKDIR_P) $(@D) $(INSTALL_DATA) $< $@ -$(OSX_INSTALLER_ICONS): FORCE +src/qt/res/rendered_icons/%: FORCE $(MAKE) -C src $(patsubst src/%,%,$@) $(OSX_APP)/Contents/Resources/bitcoin.icns: $(OSX_INSTALLER_ICONS) diff --git a/share/setup.nsi.in b/share/setup.nsi.in index 3d2cbd743c..ebd5836f41 100644 --- a/share/setup.nsi.in +++ b/share/setup.nsi.in @@ -11,7 +11,7 @@ SetCompressor /SOLID lzma # MUI Symbol Definitions !define MUI_ICON "@abs_top_srcdir@/src/qt/res/rendered_icons/bitcoin.ico" -!define MUI_WELCOMEFINISHPAGE_BITMAP "@abs_top_srcdir@/share/pixmaps/nsis-wizard.bmp" +!define MUI_WELCOMEFINISHPAGE_BITMAP "@abs_top_builddir@/src/qt/res/rendered_icons/nsis-wizard.bmp" !define MUI_HEADERIMAGE !define MUI_HEADERIMAGE_RIGHT !define MUI_HEADERIMAGE_BITMAP "@abs_top_srcdir@/share/pixmaps/nsis-header.bmp" @@ -23,7 +23,7 @@ SetCompressor /SOLID lzma !define MUI_FINISHPAGE_RUN "$WINDIR\explorer.exe" !define MUI_FINISHPAGE_RUN_PARAMETERS $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@ !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" -!define MUI_UNWELCOMEFINISHPAGE_BITMAP "@abs_top_srcdir@/share/pixmaps/nsis-wizard.bmp" +!define MUI_UNWELCOMEFINISHPAGE_BITMAP "@abs_top_builddir@/src/qt/res/rendered_icons/nsis-wizard.bmp" !define MUI_UNFINISHPAGE_NOAUTOCLOSE # Included files diff --git a/src/Makefile.qt.include b/src/Makefile.qt.include index b7fc03213c..a4b7aa1f18 100644 --- a/src/Makefile.qt.include +++ b/src/Makefile.qt.include @@ -247,8 +247,9 @@ RES_RENDERED_ICONS = \ RES_ALL_RENDERED_ICONS = $(RES_RENDERED_ICONS) \ qt/res/rendered_icons/about.svg \ - $(patsubst %,qt/res/rendered_icons/bitcoin%.png,16 32 48 256 512 1024) \ - qt/res/rendered_icons/bitcoin.icns + $(patsubst %,qt/res/rendered_icons/bitcoin%.png,16 32 48 256 290 512 1024) \ + qt/res/rendered_icons/bitcoin.icns \ + qt/res/rendered_icons/nsis-wizard.bmp RES_ICONS = $(RES_RENDERED_ICONS) \ qt/res/icons/add.png \ @@ -504,6 +505,9 @@ qt/res/rendered_icons/bitcoin.icns: $(patsubst %,qt/res/rendered_icons/bitcoin%. qt/res/rendered_icons/bitcoin.ico: qt/res/rendered_icons/bitcoin32d8.gif $(patsubst %,qt/res/rendered_icons/bitcoin%.png,256 64 48 32 20 16) $(IMAGEMAGICK_CONVERT) $^ $@ +qt/res/rendered_icons/nsis-wizard.bmp: qt/res/rendered_icons/bitcoin290.png + $(IMAGEMAGICK_CONVERT) $^ -crop 164x290+62+0 -border 0x12 -strip BMP3:$@ + else qt/res/rendered_icons/%: qt/res/icons/%