版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhanghm1995/article/details/86484043
ubuntu下可以使用nativefier来打包一些网页成为桌面应用,具体安装步骤:
1、安装nodejs
:https://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即可