diff --git a/fceux.icns b/fceux.icns index 3c7ef062..938275fd 100644 Binary files a/fceux.icns and b/fceux.icns differ diff --git a/scripts/macosx_makeIcons.sh b/scripts/macosx_makeIcons.sh new file mode 100755 index 00000000..386b5d34 --- /dev/null +++ b/scripts/macosx_makeIcons.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +SRC_PNG=../fceux1.png +OUTDIR=/tmp/fceux.iconset; +mkdir -p $OUTDIR; + +function convert() { + #echo "Convert $1 $2" + WIDTH=$1; + SCALE=$2; + WIDTH2=`expr $WIDTH / 2`; + + if [ $SCALE == "2" ]; then + OUT=icon_$WIDTH\x$WIDTH.png + else + OUT=icon_$WIDTH2\x$WIDTH2\@2x.png + fi + CMD="sips -z $WIDTH $WIDTH $SRC_PNG --out $OUTDIR/$OUT"; + echo $CMD; + $CMD; +} + +convert 32 1 ; +convert 32 2 ; +convert 64 1 ; +convert 64 2 ; +convert 256 1 ; +convert 256 2 ; +convert 512 1 ; +convert 512 2 ; +convert 1024 1 ; +convert 1024 2 ; + +iconutil -c icns $OUTDIR/ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6ea527ae..a4feb9a5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -448,8 +448,8 @@ set( DIRS ${CMAKE_BINARY_DIR} /usr/local/lib) message(STATUS APPS: ${APPS}) message(STATUS DIRS: ${DIRS} ) -#set(CPACK_PACKAGE_ICON ${CMAKE_SOURCE_DIR}/fceux.icns ) -#set(CPACK_BUNDLE_ICON ${CMAKE_SOURCE_DIR}/fceux.icns ) +set(CPACK_PACKAGE_ICON ${CMAKE_SOURCE_DIR}/fceux.icns ) +set(CPACK_BUNDLE_ICON ${CMAKE_SOURCE_DIR}/fceux.icns ) set(CPACK_GENERATOR "DRAGNDROP") include(CPACK)