Skip to content

Commit 364fded

Browse files
🔧 add mac arch
1 parent 6669995 commit 364fded

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

electron-builder.ts

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,30 @@ export default <Configuration>{
2929
// 预加载文件
3030
'preload.js',
3131
// 更新配置文件
32-
'updater.js'
32+
'updater.js',
3333
],
3434
// 生成资源的目录
3535
directories: {
3636
output: 'release/${version}',
3737
},
38+
mac: {
39+
target: [
40+
{
41+
target: 'dmg',
42+
arch: ['arm64', 'x64', 'universal'],
43+
},
44+
// 无论如何都要启用 zip,否则会影响 'dmg' 包中的自动更新
45+
{
46+
target: 'zip',
47+
arch: ['arm64', 'x64', 'universal'],
48+
},
49+
],
50+
},
3851
linux: {
3952
target: [
4053
{
4154
target: 'AppImage',
42-
}
43-
]
44-
}
55+
},
56+
],
57+
},
4558
}

0 commit comments

Comments
 (0)