Convert any website to a desktop application for Windows, Mac or Linux.

最後編輯:2018-12-15 建立:2018-12-15 歷史紀錄

ANIMESH MApinan WoratrakunFollow

Apr 16, 2016

 

 

Requirements

  • nodejs → download from here
  • nativefier

Nativefier is a command line tool that allows you to easily create a desktop application for any web site with succinct and minimal configuration. Apps are wrapped by Electron in an OS executable (.app, .exe, etc.) for use on Windows, OSX and Linux.chsnxjcjcjcn

Let’s start.

Install nativefier module as globally

  • $ npm install nativefier -g

Start convert any website to a destop application suck as .exe, .app, etc…

  • $ nativefier — name “Facebook” “https://www.facebook.com"

Optional

  • — name <value> is output name for the application.
  • — flash to enable flash in your application explorer.
  • — version is prints the version of your nativefier install.
  • — platform <value> Automatically determined based on the current OS. Can be overwritten by specifying either linux, windows, or osx. The alternative values win32 (for Windows) or darwin, mac (for OSX) can also be used.

Other api document can read more from here https://github.com/jiahaog/nativefier/blob/master/docs/api.md