Skip to content

Commit 82801b6

Browse files
committed
Add icon for helper apps.
On first run I noticed that helper (Alerts) notifies with UI that it will handle notifications. Strange because the other time I noticed that it was the main process that notified about it, and icon was set for main process previously.
1 parent ce34e01 commit 82801b6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ foreach(_suffix_list ${CEF_HELPER_APP_SUFFIXES})
156156
add_custom_command(
157157
TARGET phpdesktop
158158
POST_BUILD
159+
COMMAND ${CMAKE_COMMAND} -E copy
160+
"${CMAKE_CURRENT_SOURCE_DIR}/icon.icns"
161+
"${PHPDESKTOP_OUT_DIR}/${_helper_output_name}.app/Contents/Resources/icon.icns"
159162
COMMAND ${CMAKE_COMMAND} -E copy_directory
160163
"${PHPDESKTOP_OUT_DIR}/${_helper_output_name}.app"
161164
"${PHPDESKTOP_APP}/Contents/Frameworks/${_helper_output_name}.app"

helper-Info.plist.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<string>${EXECUTABLE_NAME}</string>
99
<key>CFBundleExecutable</key>
1010
<string>${EXECUTABLE_NAME}</string>
11+
<key>CFBundleIconFile</key>
12+
<string>icon.icns</string>
1113
<key>CFBundleIdentifier</key>
1214
<string>org.phpdesktop.helper${BUNDLE_ID_SUFFIX}</string>
1315
<key>CFBundleInfoDictionaryVersion</key>

0 commit comments

Comments
 (0)