mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02:00
nsis-header.bmp: Generate from SVG
This commit is contained in:
parent
399381e06f
commit
5e16fb1f5f
@ -59,7 +59,7 @@ BIN_CHECKS=$(top_srcdir)/contrib/devtools/symbol-check.py \
|
|||||||
$(top_srcdir)/contrib/devtools/utils.py
|
$(top_srcdir)/contrib/devtools/utils.py
|
||||||
|
|
||||||
WINDOWS_PACKAGING = src/qt/res/rendered_icons/bitcoin.ico \
|
WINDOWS_PACKAGING = src/qt/res/rendered_icons/bitcoin.ico \
|
||||||
$(top_srcdir)/share/pixmaps/nsis-header.bmp \
|
src/qt/res/rendered_icons/nsis-header.bmp \
|
||||||
src/qt/res/rendered_icons/nsis-wizard.bmp \
|
src/qt/res/rendered_icons/nsis-wizard.bmp \
|
||||||
$(top_srcdir)/doc/README_windows.txt
|
$(top_srcdir)/doc/README_windows.txt
|
||||||
|
|
||||||
|
@ -738,6 +738,9 @@ case $host in
|
|||||||
|
|
||||||
dnl We require Windows 7 (NT 6.1) or later
|
dnl We require Windows 7 (NT 6.1) or later
|
||||||
AX_CHECK_LINK_FLAG([-Wl,--major-subsystem-version -Wl,6 -Wl,--minor-subsystem-version -Wl,1], [CORE_LDFLAGS="$CORE_LDFLAGS -Wl,--major-subsystem-version -Wl,6 -Wl,--minor-subsystem-version -Wl,1"], [], [$LDFLAG_WERROR])
|
AX_CHECK_LINK_FLAG([-Wl,--major-subsystem-version -Wl,6 -Wl,--minor-subsystem-version -Wl,1], [CORE_LDFLAGS="$CORE_LDFLAGS -Wl,--major-subsystem-version -Wl,6 -Wl,--minor-subsystem-version -Wl,1"], [], [$LDFLAG_WERROR])
|
||||||
|
|
||||||
|
AC_PATH_PROGS([RSVG_CONVERT], [rsvg-convert rsvg],rsvg-convert)
|
||||||
|
AC_PATH_PROGS([IMAGEMAGICK_CONVERT], [convert],convert)
|
||||||
;;
|
;;
|
||||||
*darwin*)
|
*darwin*)
|
||||||
if test x$PNG2ICNS = xno; then
|
if test x$PNG2ICNS = xno; then
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
(gnu packages tls)
|
(gnu packages tls)
|
||||||
(gnu packages version-control)
|
(gnu packages version-control)
|
||||||
(guix build-system cmake)
|
(guix build-system cmake)
|
||||||
|
(guix build-system font)
|
||||||
(guix build-system gnu)
|
(guix build-system gnu)
|
||||||
(guix build-system python)
|
(guix build-system python)
|
||||||
(guix build-system trivial)
|
(guix build-system trivial)
|
||||||
@ -206,6 +207,25 @@ chain for " target " development."))
|
|||||||
(search-our-patches "nsis-gcc-10-memmove.patch"
|
(search-our-patches "nsis-gcc-10-memmove.patch"
|
||||||
"nsis-disable-installer-reloc.patch")))
|
"nsis-disable-installer-reloc.patch")))
|
||||||
|
|
||||||
|
(define-public font-tuffy
|
||||||
|
(package
|
||||||
|
(name "font-tuffy")
|
||||||
|
(version "20120614")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "http://tulrich.com/fonts/tuffy-" version ".tar.gz"))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"02vf72bgrp30vrbfhxjw82s115z27dwfgnmmzfb0n9wfhxxfpyf6"))))
|
||||||
|
(build-system font-build-system)
|
||||||
|
(home-page "http://tulrich.com/fonts/")
|
||||||
|
(synopsis "The Tuffy Truetype Font Family")
|
||||||
|
(description
|
||||||
|
"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. ")
|
||||||
|
(license license:public-domain)))
|
||||||
|
|
||||||
(define (fix-ppc64-nx-default lief)
|
(define (fix-ppc64-nx-default lief)
|
||||||
(package-with-extra-patches lief
|
(package-with-extra-patches lief
|
||||||
(search-our-patches "lief-fix-ppc64-nx-default.patch")))
|
(search-our-patches "lief-fix-ppc64-nx-default.patch")))
|
||||||
@ -611,7 +631,7 @@ inspecting signatures in Mach-O binaries.")
|
|||||||
(let ((target (getenv "HOST")))
|
(let ((target (getenv "HOST")))
|
||||||
(cond ((string-suffix? "-mingw32" target)
|
(cond ((string-suffix? "-mingw32" target)
|
||||||
;; Windows
|
;; Windows
|
||||||
(list zip
|
(list font-tuffy zip
|
||||||
(make-mingw-pthreads-cross-toolchain "x86_64-w64-mingw32")
|
(make-mingw-pthreads-cross-toolchain "x86_64-w64-mingw32")
|
||||||
(make-nsis-for-gcc-10 nsis-x86_64)
|
(make-nsis-for-gcc-10 nsis-x86_64)
|
||||||
nss-certs
|
nss-certs
|
||||||
|
@ -19,7 +19,7 @@ Unicode true
|
|||||||
!define MUI_WELCOMEFINISHPAGE_BITMAP "@abs_top_builddir@/src/qt/res/rendered_icons/nsis-wizard.bmp"
|
!define MUI_WELCOMEFINISHPAGE_BITMAP "@abs_top_builddir@/src/qt/res/rendered_icons/nsis-wizard.bmp"
|
||||||
!define MUI_HEADERIMAGE
|
!define MUI_HEADERIMAGE
|
||||||
!define MUI_HEADERIMAGE_RIGHT
|
!define MUI_HEADERIMAGE_RIGHT
|
||||||
!define MUI_HEADERIMAGE_BITMAP "@abs_top_srcdir@/share/pixmaps/nsis-header.bmp"
|
!define MUI_HEADERIMAGE_BITMAP "@abs_top_builddir@/src/qt/res/rendered_icons/nsis-header.bmp"
|
||||||
!define MUI_FINISHPAGE_NOAUTOCLOSE
|
!define MUI_FINISHPAGE_NOAUTOCLOSE
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
|
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY}
|
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY}
|
||||||
|
@ -1102,7 +1102,9 @@ endif
|
|||||||
|
|
||||||
# Rendered icons must be here, not in Makefile.qt.include, since they are distributed with the source tarball
|
# Rendered icons must be here, not in Makefile.qt.include, since they are distributed with the source tarball
|
||||||
|
|
||||||
RES_RENDERED_ICON_SRC = qt/res/src/bitcoin.svg
|
RES_RENDERED_ICON_SRC = \
|
||||||
|
qt/res/src/bitcoin.svg \
|
||||||
|
qt/res/src/nsis-header.svg
|
||||||
|
|
||||||
RES_RENDERED_ICONS = \
|
RES_RENDERED_ICONS = \
|
||||||
qt/res/rendered_icons/bitcoin.ico \
|
qt/res/rendered_icons/bitcoin.ico \
|
||||||
@ -1138,6 +1140,9 @@ qt/res/rendered_icons/bitcoin_testnet.ico: qt/res/rendered_icons/bitcoin.ico
|
|||||||
qt/res/rendered_icons/nsis-wizard.bmp: qt/res/rendered_icons/bitcoin290.png
|
qt/res/rendered_icons/nsis-wizard.bmp: qt/res/rendered_icons/bitcoin290.png
|
||||||
$(IMAGEMAGICK_CONVERT) $^ -crop 164x290+62+0 -border 0x12 -strip BMP3:$@
|
$(IMAGEMAGICK_CONVERT) $^ -crop 164x290+62+0 -border 0x12 -strip BMP3:$@
|
||||||
|
|
||||||
|
qt/res/rendered_icons/nsis-header.bmp: qt/res/src/nsis-header.svg
|
||||||
|
sed 's/PACKAGE_NAME/$(PACKAGE_NAME)/' < "$<" | $(RSVG_CONVERT) -f png -d 57 -p 57 | $(IMAGEMAGICK_CONVERT) - -background white -alpha remove BMP3:$@
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
39
src/qt/res/src/nsis-header.svg
Normal file
39
src/qt/res/src/nsis-header.svg
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!-- Designer: Jonas Schnelli
|
||||||
|
License: MIT
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1"
|
||||||
|
id="svg2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="2.632in" height="1in"
|
||||||
|
viewBox="-34 -34 1526 580" enable-background="new 0 0 1024 1024" xml:space="preserve">
|
||||||
|
|
||||||
|
<style type="text/css"><![CDATA[
|
||||||
|
text {
|
||||||
|
font-family: "Tuffy";
|
||||||
|
font-size: 210px;
|
||||||
|
fill: black;
|
||||||
|
text-anchor: left;
|
||||||
|
}
|
||||||
|
]]></style>
|
||||||
|
<g transform="scale(0.54, 0.54) translate(-25, 230)">
|
||||||
|
<path fill="black" d="M254.647,174.6l-13.983,56.08c15.855,3.951,64.735,20.071,72.656-11.656
|
||||||
|
C321.568,185.928,270.503,178.552,254.647,174.6z"/>
|
||||||
|
|
||||||
|
<path fill="black" d="M233.608,258.984l-15.425,61.832c19.04,4.729,77.769,23.584,86.448-11.296
|
||||||
|
C313.703,273.144,252.647,263.736,233.608,258.984z"/>
|
||||||
|
|
||||||
|
<path fill="black" d="M317.871,7.656c-137.12-34.192-276.024,49.28-310.2,186.44
|
||||||
|
c-34.208,137.136,49.256,276.048,186.36,310.24c137.16,34.199,276.063-49.265,310.256-186.408
|
||||||
|
C538.479,180.776,455.023,41.848,317.871,7.656z M368.807,219.528c-3.688,24.936-17.512,37.008-35.864,41.24
|
||||||
|
c25.2,13.12,38.024,33.239,25.809,68.12c-15.16,43.319-51.176,46.976-99.072,37.912l-11.624,46.584l-28.088-7l11.472-45.96
|
||||||
|
c-7.279-1.809-14.72-3.729-22.384-5.809l-11.512,46.177l-28.056-7l11.624-46.673c-6.561-1.68-13.225-3.464-20.024-5.168
|
||||||
|
l-36.552-9.111l13.943-32.152c0,0,20.696,5.504,20.416,5.096c7.952,1.969,11.48-3.216,12.872-6.672l18.368-73.64l0.048-0.2
|
||||||
|
l13.104-52.568c0.344-5.968-1.712-13.496-13.088-16.336c0.439-0.296-20.4-5.072-20.4-5.072l7.472-30l38.736,9.673l-0.032,0.144
|
||||||
|
c5.824,1.448,11.824,2.824,17.937,4.216L245.423,89.2l28.072,7l-11.28,45.224c7.536,1.721,15.12,3.456,22.504,5.297l11.2-44.929
|
||||||
|
l28.088,7l-11.504,46.145C347.967,167.152,373.904,185.464,368.807,219.528z"/>
|
||||||
|
</g>
|
||||||
|
<text x="320" y="336">PACKAGE_NAME</text>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in New Issue
Block a user