User Tools

Site Tools


subsystem:agl-app-fw:flatpak

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
subsystem:agl-app-fw:flatpak [2021/09/08 15:45]
samthursfield Add video link
subsystem:agl-app-fw:flatpak [2021/09/08 16:24] (current)
samthursfield
Line 6: Line 6:
  
 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:
subsystem/agl-app-fw/flatpak.txt · Last modified: 2021/09/08 16:24 by samthursfield