Skip to content

vinpremkumar/Electron-Demo-Github-Widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Widget using Electron

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.

How to compile an .exe

  1. Install NodeJS from https://nodejs.org/en/download/
  2. Install Electron using the command
npm install -g electron
  1. Install electron-packager using npm install -g electron-packager (check link: https://www.christianengvall.se/electron-packager-tutorial/)
  2. 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

Output:

ezgif-1-d4fae4c12be1

Auto startup

To automatically start the widget during start-up, open Run using Win+R and type in shell:startup image

You will get a window like this: image

Now make a shortcut of the .exe file and put it in the Startup folder

image

Thats it! It will load everytime you start your PC up.

Releases

No releases published

Packages

No packages published