-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
18 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,9 +225,10 @@ function (_yup_convert_png_to_icns png_path icons_path output_variable) | |
|
||
# TODO - check png_path has png extension | ||
|
||
add_custom_command( | ||
OUTPUT "${output_iconset_path}" | ||
COMMAND mkdir -p "${temp_iconset_name}" | ||
file (MAKE_DIRECTORY "${temp_iconset_path}") | ||
|
||
execute_process( | ||
COMMAND mkdir -p "${temp_iconset_path}" | ||
COMMAND sips -z 16 16 -s format png "${png_path}" --out "${temp_iconset_path}/icon_16x16.png" | ||
COMMAND sips -z 32 32 -s format png "${png_path}" --out "${temp_iconset_path}/icon_32x32.png" | ||
COMMAND sips -z 32 32 -s format png "${png_path}" --out "${temp_iconset_path}/[email protected]" | ||
|
@@ -238,8 +239,10 @@ function (_yup_convert_png_to_icns png_path icons_path output_variable) | |
COMMAND sips -z 512 512 -s format png "${png_path}" --out "${temp_iconset_path}/[email protected]" | ||
COMMAND sips -z 512 512 -s format png "${png_path}" --out "${temp_iconset_path}/icon_512x512.png" | ||
COMMAND sips -z 1024 1024 -s format png "${png_path}" --out "${temp_iconset_path}/[email protected]" | ||
COMMAND iconutil -c icns "${temp_iconset_path}" | ||
COMMAND rm -R "${temp_iconset_path}") | ||
COMMAND iconutil -c icns -o "${output_iconset_path}" "${temp_iconset_path}" | ||
ERROR_VARIABLE error_message) | ||
|
||
file (REMOVE_RECURSE "${temp_iconset_path}") | ||
|
||
set (${output_variable} "${output_iconset_path}" PARENT_SCOPE) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters