We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6896297 commit e7686eeCopy full SHA for e7686ee
electron-builder.ts
@@ -1,13 +1,14 @@
1
import { Configuration } from 'electron-builder'
2
3
+// 导出默认的配置对象,类型为 electron-builder 的 Configuration
4
export default <Configuration>{
- // 应用唯一标识
5
+ // 应用唯一标识,使用环境变量 npm_package_name 动态生成
6
appId: `cn.com.xuxiaowei.${process.env.npm_package_name}`,
- // 版权信息
7
+ // 版权信息,包含作者名和网站链接
8
copyright: 'Copyright © 徐晓伟 https://xuxiaowei.com.cn',
- // 打包产物名称
9
+ // 打包产物名称,使用模板字符串动态生成,包含产品名、版本、平台和架构
10
artifactName: '${productName}-${version}-${platform}-${arch}.${ext}',
- // 使用 asar 打包
11
+ // 使用 asar 打包,将所有文件打包成一个 asar 归档文件
12
asar: true,
13
// asar 打包后解压的文件(运行前会自动解压)
14
asarUnpack: [],
0 commit comments