a blog for those who code

Friday, 29 April 2016

Convert any Websites to a desktop Application using Nativefier

In this post we will be discussing about converting any web application or website to a desktop application for Windows, Mac or Linux using Nativefier package. According to Nativefier, it is a command line tool that allows you to easily create desktop application for any web site with succinct and minimal configuration. Apps are wrapped by Electron in an OS executable (For Ex - .exe) for use on Windows, Mac or Linux.

Installation

To install Nativefier you need to run the command : npm install nativefier -g

Usage

For creating a native desktop app for codingdefined.com we will run the command

nativefier "http://www.codingdefined.com"

Then Nativefier will start downloading the electron based on your OS as shown below :


It will intelligently determine the app name, your OS and processor architecture. As you can see in the below diagram that it creates folder Coding Defined-win32-x64 based on the name of the website.


You also have some optional parameters which you can set up when creating the desktop app and they are

name : Output name for the application
flash : To enable flash in your application explorer
version : Prints the version of your nativefier install

If you open the folder (in our case Coding Defined-win32-x64) you will see number of files and folders. In that files you will see an .exe (Coding Defined.exe) which is actually the executable file to run your website into a desktop application as shown below.


When you run the .exe file you will see your application opening in a Window as shown below.


Please Like and Share CodingDefined.com Blog, if you find it interesting and helpful.

No comments:

Post a Comment

Contact Us

Name

Email *

Message *

Sponsers

Best Hosting Plans

CC License