修改mac打包

This commit is contained in:
putyy
2024-02-21 16:30:24 +08:00
parent 3082faaadc
commit 7a01544323
2 changed files with 10 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ yarn install
yarn run dev
# 打包mac
yarn run build --mac
yarn run build --universal --mac
# 打包win
yarn run build --win

View File

@@ -15,9 +15,16 @@
],
"mac": {
"icon": "electron/res/icon/icons/mac/icon.icns",
"artifactName": "${productName}_${version}.${ext}",
"artifactName": "${productName}_${version}.${arch}.${ext}",
"singleArchFiles": "*",
"target": [
"dmg"
{
"target": "dmg",
"arch": [
'x64',
'arm64'
]
}
]
},
"win": {