Skip to content

Commit

Permalink
CMake: Add missing copying icons
Browse files Browse the repository at this point in the history
Those copy operations are deleted in this commit 5e5fdb1
This commits adds them with the new cmake variables.
  • Loading branch information
OrkunTokdemir committed Oct 29, 2023
1 parent fa29bcb commit e20f0c5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e20f0c5

Please sign in to comment.