mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Add missing parts for the creation of the resolution independent multi-image TIFF as disk image background.
This commit is contained in:
parent
afa75a0738
commit
12e22708aa
@ -1012,15 +1012,18 @@ EOF
|
|||||||
# The image was made with with inkscape and tiffutil from dmg-background.svgz
|
# The image was made with with inkscape and tiffutil from dmg-background.svgz
|
||||||
make_image() {
|
make_image() {
|
||||||
INKSCAPE=/Applications/Inkscape.app/Contents/MacOS/inkscape
|
INKSCAPE=/Applications/Inkscape.app/Contents/MacOS/inkscape
|
||||||
|
(
|
||||||
cd "${LyxSourceDir}"/development/MacOSX
|
cd "${LyxSourceDir}"/development/MacOSX
|
||||||
${INKSCAPE} --export-type=png -w 560 -o dmg-background.png dmg-background.svgz
|
test -x ${INKSCAPE} && ${INKSCAPE} --export-type=png -w 560 -o dmg-background.png dmg-background.svgz
|
||||||
${INKSCAPE} --export-type=png -w 1120 -o dmg-background@2x.png dmg-background.svgz
|
test -x ${INKSCAPE} && ${INKSCAPE} --export-type=png -w 1120 -o dmg-background@2x.png dmg-background.svgz
|
||||||
tiffutil -cathidpicheck dmg-background.png dmg-background@2x.png -out dmg-background.tiff
|
tiffutil -cathidpicheck dmg-background.png dmg-background@2x.png -out dmg-background.tiff
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
make_dmg() {
|
make_dmg() {
|
||||||
cd "${1}"
|
cd "${1}"
|
||||||
|
|
||||||
|
test -f "${DmgBackground}" || make_image
|
||||||
BGSIZE=$(file "$DmgBackground" | awk -F , '/TIFF/{ print $10 $4 ;}/PNG/{ print $2; }'|sed -e 's/width=//' -e 's/height=//' -e 's/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_W=$(echo ${BGSIZE} | awk '{print $1 }')
|
||||||
BG_H=$(echo ${BGSIZE} | awk '{print $2 }')
|
BG_H=$(echo ${BGSIZE} | awk '{print $2 }')
|
||||||
|
@ -10,7 +10,7 @@ nodist_bundle_DATA = Info.plist
|
|||||||
|
|
||||||
dist_bin_SCRIPTS = lyxeditor maxima inkscape lilypond lilypond-book
|
dist_bin_SCRIPTS = lyxeditor maxima inkscape lilypond lilypond-book
|
||||||
|
|
||||||
dist_pkgdata_DATA = COPYING LyXapp.icns LyX.icns LyX.sdef dmg-background.png
|
dist_pkgdata_DATA = COPYING LyXapp.icns LyX.icns LyX.sdef dmg-background.png dmg-background@2x.png dmg-background.svgz
|
||||||
nodist_pkgdata_DATA = lyxrc.dist
|
nodist_pkgdata_DATA = lyxrc.dist
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user