--- /dev/null
+{
+ "id": "webapps-aquarium",
+ "title": "Aquarium",
+ "description": "HTML5 WebGL Aquarium sample",
+ "version": "0.0.0",
+ "vendor": "Igalia, S.L.",
+ "type": "web",
+ "main": "aquarium.html",
+ "uiRevision": "2",
+ "icon": "icon.svg"
+}
--- /dev/null
+{
+ "id": "webapps-examples",
+ "title": "Examples",
+ "description": "HTML5 examples",
+ "version": "0.0.0",
+ "vendor": "Igalia, S.L.",
+ "type": "web",
+ "main": "index.html",
+ "uiRevision": "2",
+ "icon": "icon.svg"
+}
--- /dev/null
+{
+ "id": "webapps-jitsi",
+ "title": "Jitsi",
+ "description": "HTML5 Jitsi sample",
+ "version": "0.0.0",
+ "vendor": "Igalia, S.L.",
+ "type": "web",
+ "main": "index.html",
+ "uiRevision": "2",
+ "icon": "icon.svg"
+}
--- /dev/null
+{
+ "id": "webapps-youtube",
+ "title": "Youtube",
+ "description": "HTML5 Youtube sample",
+ "version": "0.0.0",
+ "vendor": "Igalia, S.L.",
+ "type": "web",
+ "main": "index.html",
+ "uiRevision": "2",
+ "icon": "icon.svg"
+}
+++ /dev/null
-[Desktop Entry]
-Version=1.0
-Name=HTML5 Aquarium
-Comment=Aquarium
-GenericName=Aquarium
-Exec=/usr/bin/WebAppMgr --appid=webapps-aquarium --app-install-dir=/usr/lib/wam_apps/html5-aquarium/
-Icon=settings
-Terminal=false
-Type=Application
-Categories=System;
-StartupNotify=true
+++ /dev/null
-[Desktop Entry]
-Version=1.0
-Name=HTML5 Examples
-Comment=Examples of web contents
-GenericName=Examples
-Exec=/usr/bin/WebAppMgr --appid=webapps-examples --app-install-dir=/usr/lib/wam_apps/html5-examples/
-Icon=settings
-Terminal=false
-Type=Application
-Categories=System;
-StartupNotify=true
+++ /dev/null
-[Desktop Entry]
-Version=1.0
-Name=HTML5 Jitsi
-Comment=Jitsi
-GenericName=Jitsi
-Exec=/usr/bin/WebAppMgr --appid=webapps-jitsi --app-install-dir=/usr/lib/wam_apps/html5-jitsi/
-Icon=settings
-Terminal=false
-Type=Application
-Categories=System;
-StartupNotify=true
+++ /dev/null
-[Desktop Entry]
-Version=1.0
-Name=HTML5 YouTube
-Comment=YouTube
-GenericName=YouTube
-Exec=/usr/bin/WebAppMgr --appid=webapps-youtube --app-install-dir=/usr/lib/wam_apps/html5-youtube/
-Icon=settings
-Terminal=false
-Type=Application
-Categories=System;
-StartupNotify=true
SUMMARY = "AGL HTML5 Aquarium Demo"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://aquarium/LICENSE;md5=9f0d95e61aa217eacd61ee6833cf411c"
-DESKTOP_FILE = "webapps-aquarium.desktop"
+APPINFO_FILE = "appinfo-aquarium.json"
require webapp-samples.inc
+inherit pythonnative agl-app
+
+AGL_APP_TEMPLATE = "agl-app-web"
+AGL_APP_ID = "webapps-aquarium"
+AGL_APP_NAME = "Aquarium"
+
do_install:append() {
cp -R --no-dereference --preserve=mode,links ${S}/aquarium/* ${D}${WAM_APPLICATIONS_DIR}/${PN}
}
SUMMARY = "AGL HTML5 Examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=7ea5dd8751060d9f04d2748030c547ed"
-DESKTOP_FILE = "webapps-examples.desktop"
+APPINFO_FILE = "appinfo-examples.json"
require webapp-samples.inc
+inherit pythonnative agl-app
+
+AGL_APP_TEMPLATE = "agl-app-web"
+AGL_APP_ID = "webapps-examples"
+AGL_APP_NAME = "Examples"
+
do_install:append() {
cp -R --no-dereference --preserve=mode,links ${S}/examples/* ${D}${WAM_APPLICATIONS_DIR}/${PN}
}
SUMMARY = "AGL HTML5 Jitsi"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=7ea5dd8751060d9f04d2748030c547ed"
-DESKTOP_FILE = "webapps-jitsi.desktop"
+APPINFO_FILE = "appinfo-jitsi.json"
require webapp-samples.inc
+inherit pythonnative agl-app
+
+AGL_APP_TEMPLATE = "agl-app-web"
+AGL_APP_ID = "webapps-jitsi"
+AGL_APP_NAME = "Jitsi"
+
do_install:append() {
cp -R --no-dereference --preserve=mode,links ${S}/jitsi/* ${D}${WAM_APPLICATIONS_DIR}/${PN}
}
SUMMARY = "AGL HTML5 Youtube"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=7ea5dd8751060d9f04d2748030c547ed"
-DESKTOP_FILE = "webapps-youtube.desktop"
+APPINFO_FILE = "appinfo-youtube.json"
require webapp-samples.inc
+inherit pythonnative agl-app
+
+AGL_APP_TEMPLATE = "agl-app-web"
+AGL_APP_ID = "webapps-youtube"
+AGL_APP_NAME = "Youtube"
+
do_install:append() {
cp -R --no-dereference --preserve=mode,links ${S}/youtube/* ${D}${WAM_APPLICATIONS_DIR}/${PN}
}
SRC_URI = " \
git://github.com/AGL-web-applications/webapp-samples.git;protocol=https;branch=master \
- file://${DESKTOP_FILE} \
+ file://${APPINFO_FILE} \
"
SRCREV = "b24a62cc524bdec98a61acc03fc53cbab24c1571"
WAM_APPLICATIONS_DIR="${libdir}/wam_apps"
-APPLICATIONS_DIR="${datadir}/applications"
do_install() {
install -d ${D}${WAM_APPLICATIONS_DIR}/${PN}
- install -d ${D}${APPLICATIONS_DIR}
- install ${WORKDIR}/${DESKTOP_FILE} ${D}${APPLICATIONS_DIR}
+ install ${WORKDIR}/${APPINFO_FILE} ${D}${WAM_APPLICATIONS_DIR}/${PN}/appinfo.json
}
FILES:${PN} = " \
${WAM_APPLICATIONS_DIR}/${PN} \
- ${APPLICATIONS_DIR} \
"