Ports: Embed icon into the Super Mario port

This commit is contained in:
Gunnar Beutner 2021-06-04 00:25:14 +02:00 committed by Andreas Kling
parent 46de51f467
commit 9c0cfede59

View file

@ -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
}