mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 13:27:35 +00:00
Ports: Add port for DungeonRush
This commit is contained in:
parent
8393e737b7
commit
8ba0533138
5 changed files with 51 additions and 1 deletions
|
@ -119,7 +119,11 @@ install_icon() {
|
|||
if [ "$convert_exists" == "0" ] && [ "$identify_exists" == "0" ]; then
|
||||
for icon_size in "16x16" "32x32"; do
|
||||
index=$(run identify "$icon" | grep "$icon_size" | grep -oE "\[[0-9]+\]" | tr -d "[]" | head -n1)
|
||||
run convert "${icon}[${index}]" "app-${icon_size}.png"
|
||||
if [ -n "$index" ]; then
|
||||
run convert "${icon}[${index}]" "app-${icon_size}.png"
|
||||
else
|
||||
run convert "$icon" -resize $icon_size "app-${icon_size}.png"
|
||||
fi
|
||||
done
|
||||
run objcopy --add-section serenity_icon_s="app-16x16.png" "${DESTDIR}${launcher}"
|
||||
run objcopy --add-section serenity_icon_m="app-32x32.png" "${DESTDIR}${launcher}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue