使用nativefier打包web应用

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhanghm1995/article/details/86484043

ubuntu下可以使用nativefier来打包一些网页成为桌面应用,具体安装步骤:
1、安装nodejshttps://blog.csdn.net/wangtaoking1/article/details/78005038

$ sudo apt-get update
$ sudo apt-get install python-software-properties
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install nodejs

安装完成之后查看版本:

$ node -v
v8.5.0
$ npm -v
v5.3.0

2、安装nativefier
https://github.com/jiahaog/nativefier

npm install nativefier -g

3、打包网页

nativefier --name "wechat" "http://medium.com"

设置APP图标:
进到resources文件夹,找到一个图片,将其复制到该目录下并命名为icon.png即可

猜你喜欢

转载自blog.csdn.net/zhanghm1995/article/details/86484043
今日推荐