Skip to content

Commit 2b237aa

Browse files
committed
nsis-header.bmp: Generate from SVG
1 parent 4143bfd commit 2b237aa

File tree

6 files changed

+71
-4
lines changed

6 files changed

+71
-4
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ BIN_CHECKS=$(top_srcdir)/contrib/devtools/symbol-check.py \
5252
$(top_srcdir)/contrib/devtools/utils.py
5353

5454
WINDOWS_PACKAGING = src/qt/res/rendered_icons/bitcoin.ico \
55-
$(top_srcdir)/share/pixmaps/nsis-header.bmp \
55+
src/qt/res/rendered_icons/nsis-header.bmp \
5656
src/qt/res/rendered_icons/nsis-wizard.bmp \
5757
$(top_srcdir)/doc/README_windows.txt
5858

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@ case $host in
681681
dnl Avoid the use of aligned vector instructions when building for Windows.
682682
dnl See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412.
683683
AX_CHECK_COMPILE_FLAG([-Wa,-muse-unaligned-vector-move], [CORE_CXXFLAGS="$CORE_CXXFLAGS -Wa,-muse-unaligned-vector-move"], [], [$CXXFLAG_WERROR])
684+
685+
AC_PATH_PROGS([RSVG_CONVERT], [rsvg-convert rsvg],rsvg-convert)
686+
AC_PATH_PROGS([IMAGEMAGICK_CONVERT], [convert],convert)
684687
;;
685688
*darwin*)
686689
if test x$PNG2ICNS = xno; then

contrib/guix/manifest.scm

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
((gnu packages tls) #:select (openssl))
2626
((gnu packages version-control) #:select (git-minimal))
2727
(guix build-system cmake)
28+
(guix build-system font)
2829
(guix build-system gnu)
2930
(guix build-system python)
3031
(guix build-system trivial)
@@ -165,6 +166,25 @@ chain for " target " development."))
165166
(home-page (package-home-page pthreads-xgcc))
166167
(license (package-license pthreads-xgcc)))))
167168

169+
(define-public font-tuffy
170+
(package
171+
(name "font-tuffy")
172+
(version "20120614")
173+
(source
174+
(origin
175+
(method url-fetch)
176+
(uri (string-append "http://tulrich.com/fonts/tuffy-" version ".tar.gz"))
177+
(file-name (string-append name "-" version ".tar.gz"))
178+
(sha256
179+
(base32
180+
"02vf72bgrp30vrbfhxjw82s115z27dwfgnmmzfb0n9wfhxxfpyf6"))))
181+
(build-system font-build-system)
182+
(home-page "http://tulrich.com/fonts/")
183+
(synopsis "The Tuffy Truetype Font Family")
184+
(description
185+
"Thatcher Ulrich's first outline font design. He started with the goal of producing a neutral, readable sans-serif text font. There are lots of \"expressive\" fonts out there, but he wanted to start with something very plain and clean, something he might want to actually use. ")
186+
(license license:public-domain)))
187+
168188
;; While LIEF is packaged in Guix, we maintain our own package,
169189
;; to simplify building, and more easily apply updates.
170190
;; Moreover, the Guix's package uses cmake, which caused build
@@ -540,7 +560,7 @@ inspecting signatures in Mach-O binaries.")
540560
python-lief)
541561
(let ((target (getenv "HOST")))
542562
(cond ((string-suffix? "-mingw32" target)
543-
(list zip
563+
(list font-tuffy zip
544564
(make-mingw-pthreads-cross-toolchain "x86_64-w64-mingw32")
545565
nsis-x86_64
546566
nss-certs

share/setup.nsi.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Unicode true
1919
!define MUI_WELCOMEFINISHPAGE_BITMAP "@abs_top_builddir@/src/qt/res/rendered_icons/nsis-wizard.bmp"
2020
!define MUI_HEADERIMAGE
2121
!define MUI_HEADERIMAGE_RIGHT
22-
!define MUI_HEADERIMAGE_BITMAP "@abs_top_srcdir@/share/pixmaps/nsis-header.bmp"
22+
!define MUI_HEADERIMAGE_BITMAP "@abs_top_builddir@/src/qt/res/rendered_icons/nsis-header.bmp"
2323
!define MUI_FINISHPAGE_NOAUTOCLOSE
2424
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
2525
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY}

src/Makefile.am

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,9 @@ endif
11081108

11091109
# Rendered icons must be here, not in Makefile.qt.include, since they are distributed with the source tarball
11101110

1111-
RES_RENDERED_ICON_SRC = qt/res/src/bitcoin.svg
1111+
RES_RENDERED_ICON_SRC = \
1112+
qt/res/src/bitcoin.svg \
1113+
qt/res/src/nsis-header.svg
11121114

11131115
RES_RENDERED_ICONS = \
11141116
qt/res/rendered_icons/bitcoin.ico \
@@ -1144,6 +1146,9 @@ qt/res/rendered_icons/bitcoin_testnet.ico: qt/res/rendered_icons/bitcoin.ico
11441146
qt/res/rendered_icons/nsis-wizard.bmp: qt/res/rendered_icons/bitcoin290.png
11451147
$(IMAGEMAGICK_CONVERT) $^ -crop 164x290+62+0 -border 0x12 -strip BMP3:$@
11461148

1149+
qt/res/rendered_icons/nsis-header.bmp: qt/res/src/nsis-header.svg
1150+
sed 's/PACKAGE_NAME/$(PACKAGE_NAME)/' < "$<" | $(RSVG_CONVERT) -f png -d 57 -p 57 | $(IMAGEMAGICK_CONVERT) - -background white -alpha remove BMP3:$@
1151+
11471152
endif
11481153

11491154

src/qt/res/src/nsis-header.svg

Lines changed: 39 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)