Build WAM demo applications from sources

Description

A set of web applications to run on WAM for demo purposes should be provided. According to the feedback from SPEC-1885, a recipe must be provided so apps/widgets are built from sources.

Environment

None

Activity

Walt Miner 
February 11, 2019 at 11:11 PM

Close for FF 6.0.4 and GG 7.0.0

Jacobo Aragunde Pérez 
December 19, 2018 at 12:10 PM

A recipe following the requirements of this ticket has been submitted to: https://github.com/webosose/meta-agl-lge/pull/33

Already received some feedback on how to best manage the different demos packaged by the recipe. Will also submit to AGL gerrit when we pass this early review process.

Jacobo Aragunde Pérez 
December 13, 2018 at 9:59 AM

Created a Makefile that makes use of wgtpkg-pack like this:
{{$ cat Makefile
APP_LIST=annex hvac-enact memory-match youtube

package:
mkdir -p package
for i in $(APP_LIST); do \ wgtpkg-pack $$i -o package/$$i.wgt; \ done

.PHONY: clean
clean:
rm -rf package
}}
Unfortunately, in the case of one of the apps, hvac-enact, it doesn't package all the files.

{{$ diff -r hvac-enact/ hvac-packaged/
Only in hvac-enact/: appinfo.json
Only in hvac-packaged/: hvac-enact.wgt
Only in hvac-enact/: main.js
Only in hvac-enact/node_modules/@enact/i18n/ilib/locale: aa
Only in hvac-enact/node_modules/@enact/i18n/ilib/locale: ab
Only in hvac-enact/node_modules/@enact/i18n/ilib/locale: abq
Only in hvac-enact/node_modules/@enact/i18n/ilib/locale: ach
Only in hvac-enact/node_modules/@enact/i18n/ilib/locale: ada
Only in hvac-enact/node_modules/@enact/i18n/ilib/locale: ady
Only in hvac-enact/node_modules/@enact/i18n/ilib/locale: ae
...}}

Jacobo Aragunde Pérez 
November 28, 2018 at 6:49 PM

Sample app sources temporarily hosted at: https://github.com/jaragunde/wam-demo-applications

Jacobo Aragunde Pérez 
November 28, 2018 at 6:14 PM

Recipes would be very simple. The `aglwgt` bbclass is provided, it relies on the app to provide a `make package` target, that creates the .wgt file under the `package` directory. A tool called `wgtpkg-pack` is provided for that purpose. If the `package` target, exists the recipe only has to point to the app sources.

And since these are web applications, no compilation is involved, we only have to package the app/widget.

Fixed

Details

Assignee

Reporter

Labels

Contract ID

Priority

Created November 28, 2018 at 6:08 PM
Updated February 11, 2019 at 11:11 PM
Resolved January 10, 2019 at 7:37 AM