Nativefier: Turn Local HTML files into Desktop App
Nativefier lets you convert any web page into a desktop application. However converting a bunch of local html, css and js files into a web app using nativefier is a bit more difficult.
So here is a workaround:
- Package your app with a bogus url. For example
nativefier --name "SomeAwesomeApp" --insecure --ignore-certificate index.html
- Navigate to the folder that was created and drop all of your files into the base directory (so they are at the same level as SomeAwesomeApp.exe)
- Navigate to resources\app\nativefier.json
a) Change the targetURL to"targetUrl":"file:///index.html"
- It will run with the local html pages/js/css/images/etc.