trtc-electron-sdk 10.3.403 → 10.3.404-beta.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-electron-sdk",
3
- "version": "10.3.403",
3
+ "version": "10.3.404-beta.0",
4
4
  "description": "trtc electron sdk",
5
5
  "main": "./liteav/trtc.js",
6
6
  "types": "./liteav/trtc.d.ts",
@@ -3,6 +3,7 @@ const path = require('path');
3
3
  const fs = require('fs-extra');
4
4
  const rimraf = require('rimraf');
5
5
  const signale = require('signale');
6
+ const { exec } = require('child_process');
6
7
 
7
8
  const {
8
9
  readCliArgv,
@@ -69,6 +70,11 @@ const main = () => {
69
70
  .then(() => {
70
71
  console.log('copy success!');
71
72
  rimraf.sync(outputDir);
73
+
74
+ if (process.platform === 'darwin') {
75
+ // Mac 下完成文件下载后,执行该命令,同步文件到 Electron 目录下
76
+ exec(`rsync -a ../../node_modules/trtc-electron-sdk/build/mac-framework/ ../../node_modules/electron/dist/Electron.app/Contents/Frameworks`);
77
+ }
72
78
  })
73
79
  .catch(err => console.error(err));
74
80
  }).catch(err => {