summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/Super-Mario/package.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/Ports/Super-Mario/package.sh b/Ports/Super-Mario/package.sh
index b4453d1208..a7b2b899b0 100755
--- a/Ports/Super-Mario/package.sh
+++ b/Ports/Super-Mario/package.sh
@@ -17,5 +17,11 @@ configure() {
install() {
run mkdir -p "${SERENITY_INSTALL_ROOT}/opt/Super_Mario"
- run cp -r uMario app.ico icon2.ico files "${SERENITY_INSTALL_ROOT}/opt/Super_Mario"
+ run cp -r uMario files "${SERENITY_INSTALL_ROOT}/opt/Super_Mario"
+ if command -v convert >/dev/null; then
+ run convert "app.ico[0]" app-16x16.png
+ run convert "app.ico[1]" app-32x32.png
+ run objcopy --add-section serenity_icon_s="app-16x16.png" "${SERENITY_INSTALL_ROOT}/opt/Super_Mario/uMario"
+ run objcopy --add-section serenity_icon_m="app-32x32.png" "${SERENITY_INSTALL_ROOT}/opt/Super_Mario/uMario"
+ fi
}