Nativefier: Turn Local HTML files into Desktop App

CIIAG
ciiag
Published in
1 min readJul 4, 2018

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:

  1. Package your app with a bogus url. For example
    nativefier --name "SomeAwesomeApp" --insecure --ignore-certificate index.html
  2. 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)
  3. Navigate to resources\app\nativefier.json
    a) Change the targetURL to "targetUrl":"file:///index.html"
  4. It will run with the local html pages/js/css/images/etc.

--

--

CIIAG
ciiag
Editor for

ICT focused NGO based in the Cook Islands