This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
subsystem:agl-app-fw:flatpak [2021/09/08 15:43] samthursfield created |
subsystem:agl-app-fw:flatpak [2021/09/08 16:24] (current) samthursfield |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== Flatpak in AGL ==== | ==== Flatpak in AGL ==== | ||
- | In eg-app-fw meeting [[:eg-app-fw/meetings#september_8_2021|2021-09-08]] we demoed using Flatpak to run apps inside AGL demo platform. | + | In eg-app-fw meeting [[:eg-app-fw/meetings#september_8_2021|2021-09-08]] we demoed using Flatpak to run apps inside AGL demo platform. (Video at https://www.youtube.com/watch?v=nZCSvBNtmHQ) |
Here is how to recreate the demo: | Here is how to recreate the demo: | ||
1. Set up AGL build environment following [[https://docs.automotivelinux.org/en/lamprey/#0_Getting_Started/2_Building_AGL_Image/0_Build_Process/|usual instructions]]. Use qemux86-64 target. | 1. Set up AGL build environment following [[https://docs.automotivelinux.org/en/lamprey/#0_Getting_Started/2_Building_AGL_Image/0_Build_Process/|usual instructions]]. Use qemux86-64 target. | ||
+ | |||
+ | 2. Check out branch [[https://git.automotivelinux.org/AGL/meta-agl-demo/log/?h=sandbox/samthursfield/flatpak-sdk|sandbox/samthursfield/flatpak-sdk]] | ||
+ | |||
+ | cd meta-agl-demo | ||
+ | git checkout sandbox/samthursfield/flatpak-sdk | ||
2. Follow [[https://gitlab.com/CodethinkLabs/agl/meta-flatpak/-/blob/AGL/AGL.md|Flatpak in AGL]] guide to modify ''local.conf'' and ''bblayers.conf''. | 2. Follow [[https://gitlab.com/CodethinkLabs/agl/meta-flatpak/-/blob/AGL/AGL.md|Flatpak in AGL]] guide to modify ''local.conf'' and ''bblayers.conf''. | ||
Line 20: | Line 25: | ||
# Output in ./agl-demo-platform-flatpak-runtime.flatpak/ and ./agl-demo-platform-flatpak-sdk.flatpak/ | # Output in ./agl-demo-platform-flatpak-runtime.flatpak/ and ./agl-demo-platform-flatpak-sdk.flatpak/ | ||
- | 5. Build the Flatpak app using flatpak-builder | + | 5. Run local web server to share runtime and SDK (using [[https://caddyserver.com/|caddy]] in this example): |
- | + | ||
- | TBD | + | |
- | + | ||
- | 6. Run local web server to share runtime and SDK (using [[https://caddyserver.com/|caddy]] in this example): | + | |
caddy file-server --listen :8000 --browse . | caddy file-server --listen :8000 --browse . | ||
+ | |||
+ | 6. Build the Flatpak app using flatpak-builder | ||
+ | |||
+ | git clone https://git.automotivelinux.org/apps/ondemandnavi/ --branch sandbox/samthursfield/flatpak | ||
+ | cd ondemandnavi | ||
+ | flatpak remote-add --user --no-gpg-verify local-agl http://localhost:8000/agl-demo-platform-flatpak-sdk.flatpak | ||
+ | flatpak-builder --repo=../../qemux86-64/ondemandnavi.repo ./_build ./org.automotivelinux.apps.Navigation.yml --force-clean --install-deps-from=local-agl --user | ||
| | ||
7. Boot the AGL demo image in qemu and install the Flatpak app. Replace $HOSTNAME with the machine running the web server: | 7. Boot the AGL demo image in qemu and install the Flatpak app. Replace $HOSTNAME with the machine running the web server: |