Nativefier – quickly package a website into a desktop program

default-user-image.png

Introduction to Nativefier

Nativefier is a command-line tool that can easily create desktop applications for any website with just one line of code. Applications are packaged into system executable files (such as .app, .exe, etc.) through Electron , which can run on Windows, Mac, etc. and on Linux systems.

Github address: https://github.com/jiahaog/nativefier , there are currently 18,000 Stars, and it is a very good open source project.

Install Nativefier

Environmental requirements

  • macOS 10.9+ / Windows / Linux
  • Node.js >= 6

If Node.js is not installed, you can click to enter the download address to install it. Due to the slow download speed of using foreign sources by default, we will switch them to domestic Taobao sources: click to view

Install

Enter the command line interface and execute the command:

 npm install nativefier -g

Wait for the execution to complete, enter nativefier command to verify whether the installation is successful!

use

Create a desktop application:

 nativefier "http://www.zhyong.cn"

Or customize an application name:

 nativefier --name "YouForever"

This article is reprinted from https://blog.p2hp.com/archives/8568
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment