|
@@ -45,6 +45,15 @@ if (APPLE)
|
|
|
COMMAND bash "-c" "iconutil -o \"${FLAMESHOT_ICNS}\" -c icns ${FLAMESHOT_ICONSET}"
|
|
|
)
|
|
|
|
|
|
+ execute_process(
|
|
|
+ COMMAND bash "-c" "rm -R \"${FLAMESHOT_ICONSET}\""
|
|
|
+ )
|
|
|
+
|
|
|
+ execute_process(
|
|
|
+ # copy icon from cache generated on the localhost if generation on CI failed
|
|
|
+ COMMAND bash "-c" "[[ -r '\"${FLAMESHOT_ICNS}\"' ]] || cp \"${CMAKE_SOURCE_DIR}\"/packaging/macos/flameshot.icns \"${FLAMESHOT_ICNS}\""
|
|
|
+ )
|
|
|
+
|
|
|
# Set application icon
|
|
|
set(MACOSX_BUNDLE_ICON_FILE flameshot.icns)
|
|
|
|