...
$ npm install -g @lightningjs/cli
Lightning refapp build (dev build) instruction:
- pull code from source repo using command $git clone https://github.com/LibertyGlobal/refapp.git
- install the NPM dependencies by running command $npm install
- $./copyAssets.sh
- run command $lng dev for testing in browser.
- run command $lng dist to make build.
Hosting lighting refapp application:
- copy the lighting build app from dist folder.
- host build folder into any http server.
- test the hosted application in browser with help of url.
Build Instructions for rdk-generic-hybrid-image-raspberrypi:
//TODO
Procedure to flash image in SD card:
method 1:
The image file will be generated under build-<MACHINE>/tmp/deploy/images/<MACHINE>
directory
sudo dd if =rdk-generic-hybrid-wpe-image-raspberrypi-rdk-hybrid.rpi-sdimg of= /dev/ <sd file > bs=4M
|
or
method 2:
Use Balena Etcher to Flash it to the Raspberry Pi's SD card, download link: https://www.balena.io/etcher/
Image Modified
Lighting refapp application integration into rdk-generic-hybrid-image-raspberrypi:
- login to raspberrypi : $ssh root@<<IP address>>
- cd /lib/rdk/
- add lighting refapp url into referenceApp.sh config file.
- reboot the box .
- lighting application will launch instead of switcher app.
...