文章浏览阅读1.5w次,点赞9次,收藏42次。目录创建项目安装electron-updaterelectron-updater配置主进程请求服务器更新渲染进程显示更新进度创建项目1、安装 vue-cli 和 脚手架样板代码npm install -g vue-cli2、创建项目vue init simulatedgreg/electr......
admin 2024-01-25
文章浏览阅读1.2w次。项目用的是vue@2.5.16, electron@2.0.4 ,vue-electron@2.0.6,ui框架那些就不说了首先下载electron-builder,这里建议使用cnpm挂淘宝镜像下载npm install -g cnpm --registry=https://registry.npm.taobao.org,先下载之后统一将整个node_module文......
admin 2024-01-25
文章浏览阅读5.6k次。更新electron-vue构建的项目中electron版本使用electron-vue构建的项目中,electron版本为v2.0.4,目前electron官方已经更新到v8.0.1,官网文档有些已经不适用与2.0.4,因此手动更新此项目中electron。步骤如下删除原依赖......
admin 2024-01-25
文章浏览阅读1.4w次,点赞3次,收藏29次。1.安装nodejs【自行百度,下载安装包,安装即可】2.安装visual stuido任一版本就可【推荐使用 vs2012,vs2013,vs2015,vs2017】3.创建文件目录【当前系统是window10】如下图4.在当前的空白区域 按住 Shi......
admin 2024-01-25
文章浏览阅读612次。electron学习记录第一章 基础知识点第二章 electron-vue文章目录electron学习记录一、electron-vue项目搭建二、启动常见错误1.process is not defined解决方案一、electron-vue项目搭建[electron-vue]是用vue-cli+electron框架搭建的项......
admin 2024-01-25
文章浏览阅读1.2k次,点赞2次,收藏5次。vue electron 初始化项目_electron项目手脚架...
admin 2024-01-25
资源浏览查阅107次。electron-vue-print-demo:electron+vuecli3实现打印小票功能,electron-vue-print-demoelectron+vuecli3实现设置打印机,静默打印小票功能使用gitclonehttps://github.com/sunniejs/electron-vue-print-demo.gitnpminstallnpmrunelectron:serve生成效果实现操......
admin 2024-01-25
文章浏览阅读6k次,点赞5次,收藏30次。前言: 在对electron的认识逐渐加深的情况下,来整理下自己的心得,在网络比较差的情况下,如何快速将一个vue项目引入electron,从而让他可以打包成桌面应用。目录:前提+准备工作:......
admin 2024-01-25
文章浏览阅读3k次,点赞3次,收藏8次。执行yarn upgrade-interactive --latest命令勾选electron、electron-builder 、electron-debug、electron-devtools-installer升级到最新版本这是我升级后的版本重启项目后,报如下错误是因为新版本网页中默认没有......
admin 2024-01-25
文章浏览阅读1.2w次,点赞3次,收藏37次。electron文档地址:https://www.electronjs.org/docs快速启动官方项目:// 克隆示例项目的仓库git clone https://github.com/electron/electron-quick-start// 进入项目cd electron-quick-start// 安装依赖npm install// 运行npm......
admin 2024-01-25
文章浏览阅读2w次,点赞13次,收藏6次。HelloWorld写完并能够成功运行了,接下来将这个HelloWorld应用打包成exe安装包,这样就可以拿到其他电脑安装运行了,个人总结两种打包方式,其实现原理相同,但过程不同。目前刚刚实验......
admin 2024-01-25
上一节《搭建 Node.js 开发环境》我们安装了 Node.js 环境。这一节,我会带大家开发自己的第一个 Electron 项目。一、使用 淘宝 的 NPM 镜像首先,我们需要安装 Electron 模块,但是由于 npm 默认是从国外的服务器上下载,网络不是那......
admin 2023-10-10
文章浏览阅读870次。上一节《搭建 Node.js 开发环境》我们安装了 Node.js 环境。这一节,我会带大家开发自己的第一个 Electron 项目。一、使用 淘宝 的 NPM 镜像首先,我们需要安装 Electron 模块,但是由于 npm 默认是从国外的服务器......
admin 2024-01-25
文章浏览阅读748次。一、安装 electron-packagerPS:安装之前,先复制一份package.json文件到./app目录下,然后改下./app目录下package.json里 “main”: “app/main.js”的路径(去掉app/),不这样子的话,下面打包的时候会报错,有的版本识......
admin 2024-01-25
文章浏览阅读1.6k次。【目的】:追寻js的去处,为js加密做准备。【练习代码git】:https://github.com/SmileEricXin/electronPractice.git dev分支// package.json 的build配置"build": { "productName": "electron-builder-start", "app......
admin 2024-01-25
文章浏览阅读2.6k次。electron 打开新窗口_electron-vue打开新窗口...
admin 2024-01-25
友情链接申请要求: 不违法不降权 权重相当 请联系QQ:737597453