diff --git a/assets/chiaki.svg b/assets/chiaki.svg
new file mode 100644
index 0000000..c0eb721
--- /dev/null
+++ b/assets/chiaki.svg
@@ -0,0 +1,407 @@
+
+
+
+
diff --git a/assets/gen-icns.sh b/assets/gen-icns.sh
new file mode 100755
index 0000000..25272ea
--- /dev/null
+++ b/assets/gen-icns.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+# https://gist.github.com/zlbruce/883605a635df8d5964bab11ed75e46ad
+
+if [ $# -ne 1 ]; then
+ echo "Usage: $0 "
+ exit 100
+fi
+filename="$1"
+name=${filename%.*}
+ext=${filename##*.}
+echo "processing: $name"
+dest="$name".iconset
+mkdir "$dest"
+
+convert -background none -resize '!16x16' "$1" "$dest/icon_16x16.png"
+convert -background none -resize '!32x32' "$1" "$dest/icon_16x16@2x.png"
+cp "$dest/icon_16x16@2x.png" "$dest/icon_32x32.png"
+convert -background none -resize '!64x64' "$1" "$dest/icon_32x32@2x.png"
+convert -background none -resize '!128x128' "$1" "$dest/icon_128x128.png"
+convert -background none -resize '!256x256' "$1" "$dest/icon_128x128@2x.png"
+cp "$dest/icon_128x128@2x.png" "$dest/icon_256x256.png"
+convert -background none -resize '!512x512' "$1" "$dest/icon_256x256@2x.png"
+cp "$dest/icon_256x256@2x.png" "$dest/icon_512x512.png"
+convert -background none -resize '!1024x1024' "$1" "$dest/icon_512x512@2x.png"
+
+iconutil -c icns "$dest"
+rm -R "$dest"
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 37aa274..d22555e 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -9,6 +9,12 @@ endif()
find_package(FFMPEG REQUIRED COMPONENTS avcodec)
+set(RESOURCE_FILES "")
+
+if(APPLE)
+ list(APPEND RESOURCE_FILES "chiaki.icns")
+endif()
+
add_executable(chiaki
include/exception.h
src/main.cpp
@@ -44,7 +50,8 @@ add_executable(chiaki
src/settingsdialog.cpp
include/manualhostdialog.h
src/manualhostdialog.cpp
- res/resources.qrc)
+ res/resources.qrc
+ ${RESOURCE_FILES})
target_include_directories(chiaki PRIVATE include)
target_link_libraries(chiaki chiaki-lib)
@@ -66,4 +73,6 @@ set_target_properties(chiaki PROPERTIES
MACOSX_BUNDLE_BUNDLE_NAME Chiaki
MACOSX_BUNDLE_BUNDLE_VERSION ${CHIAKI_VERSION}
MACOSX_BUNDLE_COPYRIGHT "thestr4ng3r (GPLv3)"
- MACOSX_BUNDLE_GUI_IDENTIFIER "org.chiaki.chiaki")
\ No newline at end of file
+ MACOSX_BUNDLE_GUI_IDENTIFIER "org.chiaki.chiaki"
+ MACOSX_BUNDLE_ICON_FILE chiaki.icns
+ RESOURCE "${RESOURCE_FILES}")
\ No newline at end of file
diff --git a/gui/chiaki.icns b/gui/chiaki.icns
new file mode 100644
index 0000000..13613ff
Binary files /dev/null and b/gui/chiaki.icns differ