Demo project for ElectronCGI using Electron for the GUI and .Net for the operations.
For more information about ElectronCGI read this.
To run the project go to the app folder cd NodeCalculator
and then run npm start
(You might need to change the path to the DotNetCalculator).
To create a rpm for Linux:
- Go to
cd DotNetCalculator
folder - Run for linux
dotnet publish --configuration release --runtime linux-x64 --self-contained false --output bin/Release/netcoreapp3.1/publish/
- Go to
cd NodeCalculator
- Run
npm run dist-linux
- The
.rpm
package will be available indist
folder - To install the rpm on linux use
sudo yum install {path-to-rpm-file}
orsudo dnf install {path-to-rpm-file}
orsudo rpm โi {path-to-rpm-file}
To create a setup file for Windows:
- Go to
cd DotNetCalculator
folder - Run for windows
dotnet publish --configuration release --runtime win-x64 --self-contained false --output bin/Release/netcoreapp3.1/publish/
- Go to
cd NodeCalculator
- Run
npm run dist-win
- The exe installation file will be available in
dist
folder - To install just run
/dist/Calculator Demo Setup 1.0.0.exe
file.
Some ideas how to create a kiosk app on linux:
https://www.electron.build/configuration/configuration
https://gist.github.com/voor/8215016d722da5df0caf629469fe7e80
https://help.gnome.org/admin/system-admin-guide/stable/lockdown-single-app-mode.html.en
https://github.com/VoidVolker/kiosk/blob/master/linux_kiosk_init.sh