⨯ Get “https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.
本文档在electron v8.0.0和electron-builder v22.3.2环境下编写,其他版本的环境可能会略有差异
全局安装electron-builder
npm install -g electron-builder在package.json文件中增加打包的配置
完整配置项文档地址:https://www.electron.build/configuration/configuration
{"build": {"productName":"Electron_Test","appId": "xxxx","copyright":"xxxx","directories": { "output": "build"}, "nsis": {"oneClick": false,"allowElevation": true, "allowToChangeInstallationDirectory": true, "installerIcon": "./build/icons/aaa.ico","uninstallerIcon": "./build/icons/aaa.ico","installerHeaderIcon": "./build/icons/aaa.ico", "createDesktopShortcut": true, "createStartMenuShortcut": true,"shortcutName": "xxxx"},"publish": [{"provider": "generic", "url": "http://xxxxx/"}],"files": ["./main.js","./dist/**","./package.json","./preload.js"],"win": {"icon": "build/icons/aaa.ico","target": [{"target": "nsis","arch": ["ia32"]}]}}
}
开始打包
electron-builder --win打包过程中可能遇到的问题
打包时下载electron-v.xxxx.zip文件失败
解决办法:直接在淘宝的文件库下载对应版本和打包平台的文件,下载完成后放在C:\Users\Administrator\AppData\Local\electron\Cache这个目录下打包时下载winCodeSign-v.xxx.7z文件失败
下载地址:https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.5.0/winCodeSign-2.5.0.7z
下载完解压放到C:\Users\Administrator\AppData\Local\electron-builder\Cache\winCodeSign目录下
- 打包时下载nsis-v.xxx.7z文件失败
下载地址:https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z
下载完解压放到C:\Users\Administrator\AppData\Local\electron-builder\Cache\nsis
- 打包时下载nsis-resources-v.xxx.7z文件失败
下载地址:https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-resources-3.4.1/nsis-resources-3.4.1.7z
下载完解压放到C:\Users\Administrator\AppData\Local\electron-builder\Cache\nsis\nsis-resources-3.4.1
第2、3、4步下载的文件如果需要其他版本,直接修改链接中的版本号即可
⨯ Get “https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.相关推荐
- 已解决Cannot download “https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-83_binding
文章目录 问题 解决方法 问题 执行npm install时,遇到下面的错误: Downloading binary from https://github.com/sass/node-sass/re ...
- sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.22.0/docker-compose-`uname -
sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.22.0/docker-compose-`uname - ...
- GitHub 开源跨平台神器 Electron 实践 | 技术头条
作者 | 李小明 责编 | 屠敏 认识 Electron Electron是由GitHub开发,用HTML.CSS 和 JavaScript来构建跨平台桌面应用程序的一个开源库.Electron通过将 ...
- GitHub 开源跨平台神器 Electron 实践
认识 Electron Electron是由GitHub开发,用HTML.CSS 和 JavaScript来构建跨平台桌面应用程序的一个开源库.Electron通过将Chromium和Node.js合 ...
- vue初始化项目出现unable to access ‘https://github.com/nhn/raphael.git/’解决有效 2021-12-30
vue初始化项目出现 npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': OpenSSL SSL_read: ...
- Github Action 快速构建 Electron 应用
前言 在开发 Electron 应用时,比较耗时的部分应该是构建打包的过程,像用 electron-builder 这种打包工具来说,它会根据你要打包的系统来下载应用的系统镜像打包工具,由于这些镜像的 ...
- 开发黑名单功能demo_突然让你开发Electron应用-electron特性练习操场-所见即所得的electron...
突然让你开发Electron应用,你能hold住吗? 如果领导突然说需要开发一款前端桌面端应用,那么对于我们前端er来说选择Electron是一件顺理成章的事情.但事实上很多同学对于Electron都 ...
- 【Electron】Electron开发入门(九):添加Flash插件
一.Electron官方开启Flash插件说明:https://electronjs.org/docs/tutorial/using-pepper-flash-plugin 看了这篇文章,并且各种操作 ...
- https://github.com/Wechat-Group/WxJava 使用记录
GITHUB地址 https://github.com/Wechat-Group/WxJava 微信公众号开发 下载demo代码参考 https://gitee.com/binary/weixin-j ...
- android视频缓存框架 [AndroidVideoCache](https://github.com/danikula/AndroidVideoCache) 源码解析与评估
文章目录 android视频缓存框架 [AndroidVideoCache](https://github.com/danikula/AndroidVideoCache) 源码解析与评估 引言 使用方 ...
最新文章
- Centos配置yum为阿里源
- 强化学习:10种真实的奖励与惩罚应用
- React App项目页面进出场动画
- qt 定义一个长度的数组,Qt - 声明一个QLabel数组并将其添加到QTabWidget的选项卡
- 深入浅出多网卡绑定技术
- CSS盒子模型之详解
- camera---(4)双摄像头分类
- 使用函数统计指定数字的个数_四种函数方法实现按条件统计一个区间数字的个数...
- 简明Linux命令行笔记:tee
- html的兼容有哪些,HTML里需要兼容验证的浏览器有哪些
- 如何使用 Apple Watch 拨打电话?
- 由乱序播放说开了去-数组的打乱算法Fisher–Yates Shuffle
- mfc 通过按钮发弹幕_BiliBiliChat
- 【leetcode】1419. Minimum Number of Frogs Croaking
- 电脑重启后 虚拟机不见了?
- mysql教学磁力链_使用MySQL存储以太坊事件
- vue2 ElementUI 表单标签、表格表头添加问号图标提示
- vue学习九--v-for的四种用法,以及key问题
- 这些曾经世界第一的手游,现在全都凉了
- CRM实施的目的是什么