From 0e6df1d54cf0ede8fd9d545a9b74a91bc6295962 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 9 Apr 2015 15:35:35 +0100 Subject: [PATCH] Build Tahoe-LAFS icon for OS X as well as Windows. refs #2323 Signed-off-by: Daira Hopwood --- misc/build_helpers/icons/logo.ico | Bin 0 -> 304886 bytes .../installer/installer => icons}/logo.svg | 0 misc/build_helpers/icons/make-osx-icon.sh | 27 ++++++++++++++++++ misc/build_helpers/icons/make-windows-icon.sh | 23 +++++++++++++++ .../windows/installer/installer/make-icon.sh | 23 --------------- 5 files changed, 50 insertions(+), 23 deletions(-) create mode 100644 misc/build_helpers/icons/logo.ico rename misc/build_helpers/{windows/installer/installer => icons}/logo.svg (100%) create mode 100755 misc/build_helpers/icons/make-osx-icon.sh create mode 100755 misc/build_helpers/icons/make-windows-icon.sh delete mode 100755 misc/build_helpers/windows/installer/installer/make-icon.sh diff --git a/misc/build_helpers/icons/logo.ico b/misc/build_helpers/icons/logo.ico new file mode 100644 index 0000000000000000000000000000000000000000..846567068128772052d16aaaa9b0a1429cb50432 GIT binary patch literal 304886 zcmeI53$!IwdFQKXn&#c0(4d014M-4hf?{Y!k=vpOaRDwu>?oOJV9WpsA_$7g(seIr z0t93nvepPLrEv^Mm`TEDG;!o{8_eP{4um1{nh4hs13seNqR?vFXMX=Wwa=|vx2jIn zIrTjCRrhyy)qZ^Yd;Ry`^*o-p%-g}+V-JsXjd%9;o_D6_dHe3$KfZh?&wGHpHEa6E zH&bu@?w)t};lc4MJ#X8~J#XE*{_(-bdfrWMfdQNN9lU0H?}0z{yn{KWDLMUo63>J0 zw@5^8>-BnG8hKuCr?m2{Len^c|ZT9 z=WYJ;xIWVIuwyAQNE;Bk3Uy|jGV?gssvv^u>R&)Yf;O$DU=(DCL~p7(9MKOfMR z-w4X7vu&n7&d9lkLmGel4eOnVN5;t#L=pzlGw z5Z%T8@*?_x&$S`G;XdA35dXUq_dkOViJLaW>QFINo4jQb(7`eU%0z_^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pyw891_#cL^ zVdcZ{J#2g!Hogoi@6SRDcwMqLi-D5i*Pl6(&DWo0l82{-@qJ0hL538VNh(x+e||}> T;mXQzi@}>) literal 0 HcmV?d00001 diff --git a/misc/build_helpers/windows/installer/installer/logo.svg b/misc/build_helpers/icons/logo.svg similarity index 100% rename from misc/build_helpers/windows/installer/installer/logo.svg rename to misc/build_helpers/icons/logo.svg diff --git a/misc/build_helpers/icons/make-osx-icon.sh b/misc/build_helpers/icons/make-osx-icon.sh new file mode 100755 index 00000000..fc81a5d2 --- /dev/null +++ b/misc/build_helpers/icons/make-osx-icon.sh @@ -0,0 +1,27 @@ +#! /bin/bash +# Based on and +# . +# converts the passed-in svgs to icns format + +if [[ "$#" -eq 0 ]]; then + echo "Usage: $0 svg1 [svg2 [...]]" + exit 0 +fi + +temp="$(mktemp -d)" +declare -a res=(16 32 64 128 256 512 1024) +for f in "$*"; do + name="`basename -s .svg "$f"`" + iconset="$temp/${name}.iconset" + mkdir -p "$iconset" + for r in "${res[@]}"; do + inkscape -z -e "$iconset/${name}${r}x${r}.png" -w "$r" -h "$r" "$f" + done + ln "$iconset/${name}32x32.png" "$iconset/${name}16x16@2x.png" + mv "$iconset/${name}64x64.png" "$iconset/${name}32x32@2x.png" + ln "$iconset/${name}256x256.png" "$iconset/${name}128x128@2x.png" + ln "$iconset/${name}512x512.png" "$iconset/${name}256x256@2x.png" + mv "$iconset/${name}1024x1024.png" "$iconset/${name}512x512@2x.png" + iconutil -c icns -o "${name}.icns" "$iconset" +done +rm -rf "$temp" diff --git a/misc/build_helpers/icons/make-windows-icon.sh b/misc/build_helpers/icons/make-windows-icon.sh new file mode 100755 index 00000000..21900aea --- /dev/null +++ b/misc/build_helpers/icons/make-windows-icon.sh @@ -0,0 +1,23 @@ +#! /bin/bash +# Based on +# converts the passed-in svgs to ico format + +if [[ "$#" -eq 0 ]]; then + echo "Usage: $0 svg1 [svg2 [...]]" + exit 0 +fi + +temp="$(mktemp -d)" +declare -a res=(16 24 32 48 64 256) +for f in "$*"; do + name="`basename -s .svg "$f"`" + iconset="$temp/${name}.iconset" + mkdir -p "$iconset" + for r in "${res[@]}"; do + inkscape -z -e "$iconset/${name}${r}.png" -w "$r" -h "$r" "$f" + done + resm=( "${res[@]/#/$iconset/${name}}" ) + resm=( "${resm[@]/%/.png}" ) + convert "${resm[@]}" "${f%%.*}.ico" +done +rm -rf "$temp" diff --git a/misc/build_helpers/windows/installer/installer/make-icon.sh b/misc/build_helpers/windows/installer/installer/make-icon.sh deleted file mode 100755 index 987e0ecb..00000000 --- a/misc/build_helpers/windows/installer/installer/make-icon.sh +++ /dev/null @@ -1,23 +0,0 @@ -#! /bin/bash -# Based on -# converts the passed-in svgs to ico - -if [[ $# -eq 0 ]]; then - echo "Usage: $0 svg1 [svg2 [...]]" - exit 0 -fi - -temp=$(mktemp -d) -declare -a res=(16 24 32 48 64 256) -for f in $*; do - mkdir -p $temp/$(dirname $f) - for r in "${res[@]}"; do - inkscape -z -e $temp/${f}${r}.png -w $r -h $r $f - done - resm=( "${res[@]/#/$temp/$f}" ) - resm=( "${resm[@]/%/.png}" ) - for filetype in ico; do - convert "${resm[@]}" ${f%%.*}.$filetype - done -done -rm -rf $temp -- 2.45.2