trtc-electron-sdk 10.3.402-beta.2 → 10.3.402-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/download.js +6 -5
package/package.json
CHANGED
package/scripts/download.js
CHANGED
|
@@ -73,10 +73,10 @@ const main = () => {
|
|
|
73
73
|
console.log('copy success!');
|
|
74
74
|
rimraf.sync(outputDir);
|
|
75
75
|
if (platform === Platform.MACOS || platform === Platform.MACOS_ARM) {
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
downloadFramework(
|
|
79
|
-
downloadFramework(
|
|
76
|
+
const arm64Url = 'https://web.sdk.qcloud.com/trtc/electron/download/trtc-electron-sdk/mac-framework/arm64.zip';
|
|
77
|
+
const x64Url = 'https://web.sdk.qcloud.com/trtc/electron/download/trtc-electron-sdk/mac-framework/x64.zip';
|
|
78
|
+
downloadFramework(arm64Url, outputDir, buildDir);
|
|
79
|
+
downloadFramework(x64Url, outputDir, buildDir);
|
|
80
80
|
}
|
|
81
81
|
})
|
|
82
82
|
.catch(err => console.error(err));
|
|
@@ -101,7 +101,8 @@ const downloadFramework = (url, outputDir, buildDir) => {
|
|
|
101
101
|
rimraf.sync(outputDir);
|
|
102
102
|
|
|
103
103
|
// Mac 下完成文件下载后,执行该命令,同步文件到 Electron 目录下
|
|
104
|
-
exec('npm run postinstall-mac');
|
|
104
|
+
// exec('npm run postinstall-mac');
|
|
105
|
+
exec(`rsync -a ../../node_modules/trtc-electron-sdk/build/mac-framework/${process.arch}/ ../../node_modules/electron/dist/Electron.app/Contents/Frameworks`)
|
|
105
106
|
}
|
|
106
107
|
}).catch(err => {
|
|
107
108
|
signale.fatal('Failed', err);
|