This project is based off of https://github.com/electron/electron-quick-start
I have modded the script to make the window look more like a widget. It displays my github repository currently, but you can easily edit the mainWindow.loadURL('') command line to show any webpage you wish.
- Install NodeJS from https://nodejs.org/en/download/
- Install Electron using the command
npm install -g electron
- Install electron-packager using
npm install -g electron-packager
(check link: https://www.christianengvall.se/electron-packager-tutorial/) - After installing electron-packager, use the below command for compiling an executable
electron-packager dir appName --overwrite --asar --platform=win32 --arch=x64 --prune=true --out=release-builds --icon=./build/icon.ico
ref: https://stackoverflow.com/a/69226864/12529099
PS: The executable attached to this github repository was made for windows 10
To automatically start the widget during start-up, open Run using Win+R and type in shell:startup
You will get a window like this:
Now make a shortcut of the .exe file and put it in the Startup folder
Thats it! It will load everytime you start your PC up.