[LyX/master] #12157 Replace old with new banner in DMG background image

Stephan Witt switt at lyx.org
Mon Jan 10 06:19:05 UTC 2022


commit 28a1744dcd451c36a1f0724aa6afe08de4a8d6a6
Author: Stephan Witt <switt at lyx.org>
Date:   Mon Jan 10 07:48:54 2022 +0100

    #12157 Replace old with new banner in DMG background image
---
 development/LyX-Mac-binary-release.sh    |   15 ++++++++++++---
 development/MacOSX/dmg-background.png    |  Bin 94300 -> 73805 bytes
 development/MacOSX/dmg-background.svgz   |  Bin 0 -> 15717 bytes
 development/MacOSX/dmg-background.tiff   |  Bin 0 -> 323234 bytes
 development/MacOSX/dmg-background at 2x.png |  Bin 0 -> 185452 bytes
 5 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/development/LyX-Mac-binary-release.sh b/development/LyX-Mac-binary-release.sh
index 25b1c7a..017a610 100644
--- a/development/LyX-Mac-binary-release.sh
+++ b/development/LyX-Mac-binary-release.sh
@@ -332,7 +332,7 @@ QtBuildDir=${QtBuildDir:-"${LyxBuildDir}"/${QtBuildSubDir:-"qt-build"}}
 
 DictionarySourceDir=${DICTIONARYDIR:-$(dirname "${LyxSourceDir}")/dictionaries}
 DocumentationDir=$(dirname "${LyxSourceDir}")/Documents
-DmgBackground="${LyxSourceDir}"/development/MacOSX/dmg-background.png
+DmgBackground="${LyxSourceDir}"/development/MacOSX/dmg-background.tiff
 
 if [ -z "${LyXVersion}" ]; then
 	LyXVersion=$(grep AC_INIT "${LyxSourceDir}"/configure.ac | cut -d, -f2 | tr -d " []()")
@@ -959,7 +959,7 @@ set_bundle_display_options() {
 	X_BOUNDS=$2
 	Y_BOUNDS=$3
 	Y_POSITION=$((Y_BOUNDS - 65))
-	Y_BOUNDS=$((Y_BOUNDS + 20))
+	Y_BOUNDS=$((Y_BOUNDS + 50))
 	LYX_X_POSITION=$((X_BOUNDS / 4))
 	LYX_Y_POSITION=$Y_POSITION
 	APP_X_POSITION=$((3 * X_BOUNDS / 4))
@@ -997,10 +997,19 @@ set_bundle_display_options() {
 EOF
 }
 
+# The image was made with with inkscape and tiffutil from dmg-background.svgz
+make_image() {
+	INKSCAPE=/Applications/Inkscape.app/Contents/MacOS/inkscape
+	cd "${LyxSourceDir}"/development/MacOSX
+	${INKSCAPE} --export-type=png -w 560 -o dmg-background.png dmg-background.svgz
+	${INKSCAPE} --export-type=png -w 1120 -o dmg-background at 2x.png dmg-background.svgz
+	tiffutil -cathidpicheck dmg-background.png dmg-background at 2x.png -out dmg-background.tiff
+}
+
 make_dmg() {
 	cd "${1}"
 
-	BGSIZE=$(file "$DmgBackground" | awk -F , '/PNG/{print $2 }' | tr x ' ')
+	BGSIZE=$(file "$DmgBackground" | awk -F , '/TIFF/{ print $10 $4 ;}/PNG/{ print $2; }'|sed -e 's/width=//' -e 's/height=//' -e 's/x//')
 	BG_W=$(echo ${BGSIZE} | awk '{print $1 }')
 	BG_H=$(echo ${BGSIZE} | awk '{print $2 }')
 
diff --git a/development/MacOSX/dmg-background.png b/development/MacOSX/dmg-background.png
index 1a513a8..b6feca5 100644
Binary files a/development/MacOSX/dmg-background.png and b/development/MacOSX/dmg-background.png differ
diff --git a/development/MacOSX/dmg-background.svgz b/development/MacOSX/dmg-background.svgz
new file mode 100644
index 0000000..db0d3d6
Binary files /dev/null and b/development/MacOSX/dmg-background.svgz differ
diff --git a/development/MacOSX/dmg-background.tiff b/development/MacOSX/dmg-background.tiff
new file mode 100644
index 0000000..15651a8
Binary files /dev/null and b/development/MacOSX/dmg-background.tiff differ
diff --git a/development/MacOSX/dmg-background at 2x.png b/development/MacOSX/dmg-background at 2x.png
new file mode 100644
index 0000000..e5b5a3b
Binary files /dev/null and b/development/MacOSX/dmg-background at 2x.png differ


More information about the lyx-cvs mailing list