一.下载nativefier
npm install nativefier -g
二.制作APP
nativefier "https://hixingchen.com"
若想修改图标与名字:
nativefier --icon Blog.ico --name "XingChen-Blog" "https://hixingchen.com"
Blog.ico是自己的图标名字,图标放在安装目录下;
name不要有中文,不在命令里修改名字也是可以的,可直接在安装完的应用程序直接修改名字。
最后如果有兴趣可以去github上看nativefier作者的源代码,有更详细的解释:https://github.com/jiahaog/nativefier