Files
DataViewCenter/SmartAgriCenter/electron-builder.yml
T

28 lines
949 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 绿色版打包配置(electron-builder
# 使用方式:npm run dist(先 electron-vite build,再 electron-builder
# 输出位置:release/ 目录下 zip 压缩包,解压即用(免安装绿色版)
appId: com.bbit.smartagri
productName: 智慧农业大数据可视化控制中心
directories:
output: release
buildResources: build
# 只打包构建产物(main/preload/renderer 已全部打进 out/
files:
- out/**
- package.json
# 应用图标(dev 模式主窗口 icon 与打包均使用)
- build/icon.ico
asar: true
# 关闭重建原生依赖(本应用无原生模块,避免下载耗时)
npmRebuild: false
win:
icon: build/icon.ico
# zip = 免安装绿色版压缩包;如需单文件 exe 可加 portable
target:
- target: zip
arch:
- x64
# 本机网络受限时使用 Electron 镜像下载打包用二进制
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/