Commit 0e80405c6403d0c0eb507a6a804c980d14a69151
1 parent
371a19ed
Exists in
master
and in
3 other branches
Fixing customized builds.
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
win/pack.sh
@@ -484,8 +484,14 @@ buildApplication() | @@ -484,8 +484,14 @@ buildApplication() | ||
484 | fi | 484 | fi |
485 | fi | 485 | fi |
486 | 486 | ||
487 | - if [ -e branding/${1}.svg ]; then | ||
488 | - convert -density 384 -background transparent branding/${1}.svg -define icon:auto-resize -colors 256 ${WORKDIR}/build/${ARCH}/${1}.ico | 487 | + if [ -e branding/${PRODUCT_NAME}.svg ]; then |
488 | + convert -density 384 -background transparent branding/${1}.svg -define icon:auto-resize -colors 256 ${WORKDIR}/build/${ARCH}/${PRODUCT_NAME}.ico | ||
489 | + if [ "$?" != "0" ]; then | ||
490 | + cleanup | ||
491 | + exit -1 | ||
492 | + fi | ||
493 | + elif [ -e branding/${1}.svg ]; then | ||
494 | + convert -density 384 -background transparent branding/${1}.svg -define icon:auto-resize -colors 256 ${WORKDIR}/build/${ARCH}/${PRODUCT_NAME}.ico | ||
489 | if [ "$?" != "0" ]; then | 495 | if [ "$?" != "0" ]; then |
490 | cleanup | 496 | cleanup |
491 | exit -1 | 497 | exit -1 |