关于electron我不进行介绍,请移步官网认识了解
这里讲述一个实例,关于做一个linux桌面版qq的大致过程(由于时间紧迫,我并没有仔细阅读api文档,请仅当学习参考)
1.安装electron-api
下载地址https://electron-api-demos.githubapp.com/updates/electron-api-demos-linux.zip
2.使用官方提供最基本的实例
# Clone the Quick Start repository
$ git clone https://github.com/electron/electron-quick-start
# Go into the repository
$ cd electron-quick-start
# Install the dependencies and run
$ npm install && npm start
这里说明一点,官方实例可能无法完成安装,这里推荐使用其他镜像完成安装
npm install -g cnpm --registry=https://registry.npm.taobao.org
#然后使用 cnpm install 进行按照
# Install the dependencies and run
$ cnpm install && npm start
如果使用webstrom进行开发可配置为 npm start 进行启动,这里不展开
3.开始修改官方实例
mainWindow.loadURL(url.forma

本文介绍了使用Electron框架开发Linux桌面版QQ应用的过程,包括安装Electron-API,修改官方实例以启动WebQQ,添加快捷键功能,以及解决程序打包后图标无法显示的问题。通过编写shell脚本和C程序,实现双击启动应用。
最低0.47元/天 解锁文章
3万+

被折叠的 条评论
为什么被折叠?



