Minimal Electron template for Windows apps with auto-update and custom installer logo.
Install Node.js and npm, then run from your clone:
npm install
npm startAfter customizing the application identity and installer settings below, build the Windows installer with npm run build.
- Replace
build/icon.icowith your actual logo (256x256 ICO recommended) - In
package.jsonupdate:name,description,productNamebuild.appId(e.g.com.yourname.appname)build.publish.ownerandbuild.publish.repo
- Rename
src/index.htmltitle and heading
Push a tag to trigger the GitHub Actions release workflow:
git tag v1.0.0
git push origin v1.0.0
The workflow builds the NSIS installer and uploads it (plus latest.yml) to a GitHub release. electron-updater reads latest.yml to detect new versions automatically.
On launch, autoUpdater.checkForUpdatesAndNotify() checks the GitHub release for a newer latest.yml. If found, it downloads and installs the update silently, prompting the user to restart.