Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix up cmake stuff with help from franciscod and convert to PIL.
- Loading branch information
1 parent
aa114b3
commit 0fd13dd
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
message("Cropping gaben.png to create placeholder icon...") | ||
message("Cropping gaben.png to create placeholder desktop icon...") | ||
|
||
execute_process(convert -crop 512x512+92+137 gaben.png "${CMAKE_BINARY_DIR}/assets/dist/openage.png") | ||
execute_process(COMMAND python3 -c " | ||
import PIL.Image; | ||
cropped=PIL.Image.open('${GLOBAL_ASSET_DIR}/gaben.png').crop((92,137,604,649)); | ||
cropped.save('${CMAKE_BINARY_DIR}/dist/openage.png')") | ||
|
||
install(FILES ${GLOBAL_ASSET_DIR}/dist/openage.desktop | ||
DESTINATION ${CMAKE_INSTALL_PREFIX}/usr/share/applications) | ||
|
||
install(FILES ${CMAKE_BINARY_DIR}/assets/dist/openage.png | ||
install(FILES ${CMAKE_BINARY_DIR}/dist/openage.png | ||
DESTINATION ${CMAKE_INSTALL_PREFIX}/usr/share/pixmaps) |