summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-06-04 11:03:13 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-04 12:54:27 +0200
commita446530c0dbf2952cccd8d17635ab40e7f54c736 (patch)
tree33785a9c7547ce26ec90544eb12b7ac978f74fa2 /Ports
parent68f0170bc6d250ba6304a3523425496a8643c9d8 (diff)
downloadserenity-a446530c0dbf2952cccd8d17635ab40e7f54c736.zip
Ports: Embed ScummVM icons into the binary
Slightly inspired by 9c0cfede.
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/scummvm/package.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/Ports/scummvm/package.sh b/Ports/scummvm/package.sh
index 4172858b59..43e06ccc44 100755
--- a/Ports/scummvm/package.sh
+++ b/Ports/scummvm/package.sh
@@ -15,3 +15,13 @@ configopts="
launcher_name=ScummVM
launcher_category=Games
launcher_command=/usr/local/bin/scummvm
+
+post_install() {
+ if command -v convert >/dev/null; then
+ run convert "icons/scummvm.ico[0]" app-32x32.png
+ run convert "icons/scummvm.ico[1]" app-16x16.png
+ target_binary="${SERENITY_INSTALL_ROOT}/usr/local/bin/scummvm"
+ run objcopy --add-section serenity_icon_s="app-16x16.png" "${target_binary}"
+ run objcopy --add-section serenity_icon_m="app-32x32.png" "${target_binary}"
+ fi
+}