From: Daira Hopwood Date: Thu, 9 Apr 2015 14:35:35 +0000 (+0100) Subject: Build Tahoe-LAFS icon for OS X as well as Windows. refs #2323 X-Git-Url: https://git.rkrishnan.org/pf/content/en/service?a=commitdiff_plain;h=0e6df1d54cf0ede8fd9d545a9b74a91bc6295962;p=tahoe-lafs%2Ftahoe-lafs.git Build Tahoe-LAFS icon for OS X as well as Windows. refs #2323 Signed-off-by: Daira Hopwood --- diff --git a/misc/build_helpers/icons/logo.ico b/misc/build_helpers/icons/logo.ico new file mode 100644 index 00000000..84656706 Binary files /dev/null and b/misc/build_helpers/icons/logo.ico differ diff --git a/misc/build_helpers/icons/logo.svg b/misc/build_helpers/icons/logo.svg new file mode 100644 index 00000000..6de798e3 --- /dev/null +++ b/misc/build_helpers/icons/logo.svg @@ -0,0 +1,157 @@ + + + + + + image/svg+xml + + Tahoe-LAFS logo + + + + + + Tahoe-LAFS logo + + A proposed logo for the Tahoe-LAFS Project. + + + + +Tahoe-LAFS Logo + by Kevin Reid + is licensed under a Creative Commons Attribution 3.0 Unported License +. + + + + + + + + + + + + + + + + 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/logo.svg b/misc/build_helpers/windows/installer/installer/logo.svg deleted file mode 100644 index 6de798e3..00000000 --- a/misc/build_helpers/windows/installer/installer/logo.svg +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - image/svg+xml - - Tahoe-LAFS logo - - - - - - Tahoe-LAFS logo - - A proposed logo for the Tahoe-LAFS Project. - - - - -Tahoe-LAFS Logo - by Kevin Reid - is licensed under a Creative Commons Attribution 3.0 Unported License -. - - - - - - - - - - - - - - - - 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