From: Daira Hopwood Date: Thu, 30 Apr 2015 14:24:12 +0000 (+0100) Subject: Build Tahoe-LAFS icon for OS X and Windows. refs ticket:2323 X-Git-Tag: allmydata-tahoe-1.10.1a1~25 X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/running.html?a=commitdiff_plain;h=88b735b6be8074e2b87929f4b3d3f5bdfb5a51af;p=tahoe-lafs%2Ftahoe-lafs.git Build Tahoe-LAFS icon for OS X and Windows. refs ticket: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"