Ports: Embed ScummVM icons into the binary
Slightly inspired by 9c0cfede
.
This commit is contained in:
parent
68f0170bc6
commit
a446530c0d
Notes:
sideshowbarker
2024-07-18 16:55:04 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/a446530c0db Pull-request: https://github.com/SerenityOS/serenity/pull/7766
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue