X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=graphics%2Fupdate;h=2e5bccd17d63aee71b49f59b156cc7c6cccf3f0e;hb=d4826867a7ac80c06c1a28edb526c748ff3f015f;hp=642ff7fc0ccb92efd18c7e6fa9421f0890ea262c;hpb=ea61d349a10b053e8acf5b009e51d3aaba0714c6;p=dcpomatic.git diff --git a/graphics/update b/graphics/update index 642ff7fc0..2e5bccd17 100755 --- a/graphics/update +++ b/graphics/update @@ -12,19 +12,20 @@ if [ `basename $pwd` != "graphics" ]; then exit 1 fi -for c in icotool convert inkscape; do - if [ ! -x "$(command -v $c)" ]; then - echo "$c is required" - exit 1 - fi -done - if [ `uname -s` == "Darwin" ]; then # Convert OS X icons using OS X-only iconutil for p in dcpomatic2 dcpomatic2_kdm dcpomatic2_server dcpomatic2_batch dcpomatic2_player dcpomatic2_playlist; do iconutil --convert icns --output osx/$p.icns osx/$p.iconset done else + + for c in icotool convert inkscape; do + if [ ! -x "$(command -v $c)" ]; then + echo "$c is required" + exit 1 + fi + done + INKSCAPE="inkscape -z -C -e" # OS X application icons @@ -62,7 +63,7 @@ else # OS X preferences icons # servers.png does not have an SVG version mkdir -p osx/preferences - for i in colour_conversions defaults email kdm_email cover_sheet keys tms notifications accounts locations; do + for i in colour_conversions defaults email kdm_email cover_sheet keys tms notifications locations sound; do $INKSCAPE osx/preferences/$i.png src/$i.svg -w 32 -h 32 done