aboutsummaryrefslogtreecommitdiffstats
path: root/meta-app-framework
diff options
context:
space:
mode:
Diffstat (limited to 'meta-app-framework')
-rw-r--r--meta-app-framework/classes/agl-app.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-app-framework/classes/agl-app.bbclass b/meta-app-framework/classes/agl-app.bbclass
index 6565fdfae..491a36e02 100644
--- a/meta-app-framework/classes/agl-app.bbclass
+++ b/meta-app-framework/classes/agl-app.bbclass
@@ -68,6 +68,14 @@ do_install:append () {
Environment=AGL_APP_WAM_DIR=${AGL_APP_WAM_DIR}
EOF
fi
+
+ if [ "${AGL_APP_TEMPLATE}" = "agl-app-flutter" ]; then
+ # Install icon if present
+ if [ -f ${S}/package/${AGL_APP_ID}.svg ]; then
+ install -d ${D}${datadir}/icons/hicolor/scalable
+ install -m 0644 ${S}/package/${AGL_APP_ID}.svg ${D}${datadir}/icons/hicolor/scalable/
+ fi
+ fi
}
FILES:${PN}:append = " ${systemd_system_unitdir} ${datadir}/icons"