joshuaai / electron-hello

A simple Electron app, testing out the features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Electron App

The How

Getting Started

  • npm init -y
  • npm install --save-dev electron

Add a start script to package.json:

"start": "electron main.js",

Add the main.js and index.html files.

Run the app with npm run start.

Loading CSS and JS in BrowserWindow

We use the node renderer() in the Script tag and import the CSS normally.

Electron Icon Maker

npm install -g electron-icon-maker-fix

"./node_modules/.bin/electron-icon-maker" -i build-assets/icon-man.png -o build/

About

A simple Electron app, testing out the features


Languages

Language:JavaScript 84.4%Language:HTML 9.1%Language:Batchfile 3.3%Language:CSS 3.1%