Skip to content

Commit

Permalink
upd electron builder config
Browse files Browse the repository at this point in the history
  • Loading branch information
liyongqiang01 committed Nov 21, 2023
1 parent fe793ef commit a3ccfd4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Group-Video/NERtcSample-GroupVideoCall-Electron/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ module.exports = {
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
externals: ['nertc-electron-sdk'],
builderOptions: {
asarUnpack: [
'./node_modules/nertc-electron-sdk/**/*' // 匹配需要解包的文件或目录
],
extraResources: [
{
from: './node_modules/nertc-electron-sdk/build/Release',
to: 'unasar',
filter: ['**/*.node']
}
]
// extraResources: [
// {
// from: './node_modules/nertc-electron-sdk/build/Release',
// to: 'unasar',
// filter: ['**/*.node']
// }
// ]
}
}
},
Expand Down

0 comments on commit a3ccfd4

Please sign in to comment.