Prerequisite

Rpi Image Flash app has been developed and tested on below environment

Visual Studio Code is a source-code editor made by Microsoft for Windows, Linux and macOS.

Electron (formerly known as Atom Shell) is a free and open-source software framework developed and maintained by GitHub. It allows for the development of desktop GUI applications using web technologies: it combines the Chromium rendering engine and the Node. js runtime.

Google Chrome is a cross-platform web browser developed by Google.

Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser.

V8 is Google's open source high-performance JavaScript and WebAssembly engine, written in C++. It is used in Chrome and in Node.js, among others.

RDKV Image Flash App 


For easy On boarding of the developers for the R-PI Target , image  Flashing in SD card , proceces made easy with Image Flash App.
In an Image flash app , with 3 easy step user can flash an image on SD card.

       1) Select an SD card on which user want to flash image.

       2) choose default option or upload an image 

       3) Press 'Flash Image'    button to start image flash on SD card


Source code setup and Run application

Follow below steps to run application on host pc and create installer package

$ npm install

$ npm install --save-dev electron

$npm run start     


Create installer package

Follow below steps to create installer package for linux/windows/mac             

$ sudo npm install -g electron-packager

             $ sudo npm install -g electron-installer-debian

$ electron-packager . --platform linux --arch x64 --out dist --overwrite

$ electron-installer-debian --src dist/EMV-linux-x64/ --arch amd64 --config config.json

For the complete documentation on electronjs refer link: https://www.electronjs.org/.



Installation



Features

       →   Insert SD card in to host PC .

       →  Select desired SD card from  dropdown list.    

       →  Select  Default checkbox.

       →  Press Flash Image button.





       →   Insert SD card in to host PC .

       →  Select desired SD card from  dropdown list.    

       →  Upload image 

       →  Press Flash Image button.



In progress Tasks: