Skip to content

Commit

Permalink
CMake: Add missing copying icons commands (#3394)
Browse files Browse the repository at this point in the history
Those copy operations are deleted in this commit 5e5fdb1
This commit adds them with the new `CMake` variables.
  • Loading branch information
OrkunTokdemir authored Nov 25, 2023
1 parent f0430e0 commit 4c8ae88
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 4c8ae88

Please sign in to comment.