summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-04 00:25:14 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-04 09:38:25 +0200
commit9c0cfede593d41549095df7252429247abc34bb4 (patch)
treecac22be60dd416b54b10932f0476327ede05a987 /Ports
parent46de51f467256ca7e030a4a40deed4589f50cc60 (diff)
downloadserenity-9c0cfede593d41549095df7252429247abc34bb4.zip
Ports: Embed icon into the Super Mario port
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
}