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:
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 +
Useful for prototyping, presenting, or for simple offline stuff.