Skip to content

Commit 4c8ae88

Browse files
CMake: Add missing copying icons commands (flameshot-org#3394)
Those copy operations are deleted in this commit 5e5fdb1 This commit adds them with the new `CMake` variables.
1 parent f0430e0 commit 4c8ae88

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ if (APPLE)
4545
COMMAND bash "-c" "iconutil -o \"${FLAMESHOT_ICNS}\" -c icns ${FLAMESHOT_ICONSET}"
4646
)
4747

48+
execute_process(
49+
COMMAND bash "-c" "rm -R \"${FLAMESHOT_ICONSET}\""
50+
)
51+
52+
execute_process(
53+
# copy icon from cache generated on the localhost if generation on CI failed
54+
COMMAND bash "-c" "[[ -r '\"${FLAMESHOT_ICNS}\"' ]] || cp \"${CMAKE_SOURCE_DIR}\"/packaging/macos/flameshot.icns \"${FLAMESHOT_ICNS}\""
55+
)
56+
4857
# Set application icon
4958
set(MACOSX_BUNDLE_ICON_FILE flameshot.icns)
5059

0 commit comments

Comments
 (0)