当前位置:网站首页>Image source configuration of electron and electron Builder (2022-06)
Image source configuration of electron and electron Builder (2022-06)
2022-07-16 05:35:00 【zq. xc】
Configure image source
I haven't packed it for a long time electron Project , When packaging today, I found that the previous image source has failed , Just change the new image source of Taobao , Here's a record .
Just select a location configuration below , It is recommended to configure .npmrc file
- overall situation .npmrc file
- Under the project .npmrc file
- environment variable
Configuration item :
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/
ELECTRON_BUILDER_BINARIES_MIRROR=https://npmmirror.com/mirrors/electron-builder-binaries/
Here are electron-builder Source code , Get the code of the download address
Source file :electron-builder/packages/app-builder-lib/src/binDownload.ts
const baseUrl = process.env.NPM_CONFIG_ELECTRON_BUILDER_BINARIES_MIRROR ||
process.env.npm_config_electron_builder_binaries_mirror ||
process.env.npm_package_config_electron_builder_binaries_mirror ||
process.env.ELECTRON_BUILDER_BINARIES_MIRROR ||
"https://github.com/electron-userland/electron-builder-binaries/releases/download/"
priority : overall situation .npmrc > Under the project .npmrc > and environment variable
边栏推荐
- Svelte official introductory tutorial (5) - Events
- c语言中的输入输出函数之scanf函数
- [Huang ah code] Why do I suggest you choose go instead of PHP?
- oracle 学习
- 【黄啊码】PHP实现文件下载,支持断点续传
- [tensorflow2] implementation of gradient inversion layer (GRL) and domain antagonism training neural network (Dann)
- :class修改样式
- 【黄啊码】PHP将远程资源保存到本地
- 网络安全应急响应-基础技能
- 38.js--原型练习案例(校招面试题)
猜你喜欢

ES6--let与const

网络安全应急响应-基础技能

《自动化机器学习》

<statement> or DELIMITER expected, got ‘id‘

ES6--类(class)

el-button 显示与禁用

Blue Bridge Cup: the second game of the 13th provincial competition of single chip microcomputer group

【黄啊码】MySQL入门—1、SQL 的执行流程

ES6--数组
![[Huang ah code] PHP cooperates with xlwriter to realize infinite header level excel export](/img/42/83660b9b6703881df3370f64a9af78.png)
[Huang ah code] PHP cooperates with xlwriter to realize infinite header level excel export
随机推荐
[Huang ah code] today, someone actually asked me: what does where 1=1 mean?
Memo, usememo, usecallback summary
Blue Bridge Cup: the second game of the 13th provincial competition of single chip microcomputer group
ES6新增的class类
Random signal analysis, 2nd Edition [edited by Zhao Shuqing and Zheng Wei] (part) answer to homework after class (written by myself)
C3&H5&ES6
移动web开发
36.js--原型链2--(笔试题为主)
将列表数据转换为树形数据
memo、useMemo、useCallback总结
SNMP起步啦
Svelte official introductory tutorial (1) - Introduction
el-button 显示与禁用
包管理工具
JS字符串内置功能
(cvpr-2022) Lagrangian motion analysis and perspective embedding for improved gait recognition
C语言:通过结构体实现通讯录的简易功能
[Huang ah code] Why do I suggest you choose go instead of PHP?
垃圾回收机制
Svelte 官方入门教程(3)—— Props