Skip to content
Package any local/static website folder into a desktop application (electron/macOS).
Branch: master
Clone or download
Thomas Buffet
Thomas Buffet set resizable false
Latest commit 6c8b7fa Apr 29, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md tweaks Aug 2, 2018
icon-electron-wrap.icns
index-electron-wrap.js
package.json small update Apr 30, 2019
wrap.sh small update Apr 30, 2019

README.md

electron-wrap


Package any local/static website folder (typically a /public) into a desktop application, electron/macOS. The process requires Node/npm installed on your machine.

To do so, cd to the folder that contains the files, and run:

bash <(curl -s https://raw.githubusercontent.com/thmsbfft/electron-wrap/master/wrap.sh)

The script will ask for a name and a window size for the app. After that, the script will:

Download package.json and index.js from this repository

Install the dependencies (electron, express to serve the files)

Package the folder into an Electron executable

Cleanup the files it downloaded + node_modules/


Useful for prototyping, presenting, or for simple offline stuff.

You can’t perform that action at this time.