-
Notifications
You must be signed in to change notification settings - Fork 1
/
electron-builder.json5
76 lines (76 loc) · 2.11 KB
/
electron-builder.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**
* @see https://www.electron.build/configuration/configuration
*/
{
"productName": "ultra-live-electron",
"appId": "com.tencentcloud.trtc.ultra-live-electron",
"asar": false,
"directories": {
"output": "release/${version}"
},
"files": [
"dist/**/*",
"*.js",
"!node_modules"
],
"mac": {
"artifactName": "${productName}_${version}.${ext}",
"extraFiles": [
{
"from": "node_modules/trtc-electron-sdk/build/Release/${arch}/trtc_electron_sdk.node",
"to": "./Resources"
},
{
"from": "node_modules/trtc-electron-sdk/build/mac-framework/${arch}/",
"to": "./Frameworks"
},
{
"from": "node_modules/trtc-electron-plugin-xmagic/plugin/XMagic/mac/",
"to": "./Resources/app/plugin/XMagic/mac/"
}
],
"target": ["dmg"],
"entitlements": "scripts/entitlements.mac.plist",
"entitlementsInherit": "scripts/entitlements.mac.plist",
"extendInfo": {
"NSCameraUsageDescription": "Need camera permission",
"NSMicrophoneUsageDescription": "Need microphone permission",
},
},
"win": {
"artifactName": "${productName}_${version}.${ext}",
"extraFiles": [
{
"from": "node_modules/trtc-electron-sdk/build/Release/",
"to": "./resources",
"filter": [
"**/*"
]
},
{
"from": "node_modules/trtc-electron-plugin-xmagic/plugin/XMagic/win/${arch}/platforms/",
"to": "./platforms",
"filter": ["**/*"],
},
{
"from": "node_modules/trtc-electron-plugin-xmagic/plugin/XMagic/win/${arch}/",
"to": "./resources/app/plugin/XMagic/win/${arch}/",
"filter": ["**/*"],
},
{
"from": "node_modules/trtc-electron-plugin-xmagic/plugin/XMagic/win/res/",
"to": "./resources/app/plugin/XMagic/win/res/",
"filter": ["**/*"],
},
],
"target": ["nsis", "zip"],
},
"nsis": {
"oneClick": false,
"perMachine": true,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": true,
"createDesktopShortcut": true,
"runAfterFinish": true,
}
}