trtc-electron-sdk 11.3.502-alpha.3 → 11.3.502-alpha.4

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": "11.3.502-alpha.3",
3
+ "version": "11.3.502-alpha.4",
4
4
  "description": "trtc electron sdk",
5
5
  "main": "./liteav/trtc.js",
6
6
  "types": "./liteav/trtc.d.ts",
@@ -6,8 +6,6 @@ const signale = require('signale');
6
6
  const { exec } = require('child_process');
7
7
  const { HttpsProxyAgent } = require('hpagent');
8
8
 
9
- console.warn(`test: [${new Date().getTime()}] start download dynamic library for MacOS`);
10
-
11
9
  const {
12
10
  readCliArgv,
13
11
  readArgvFromNpmEnv,
@@ -144,8 +142,6 @@ const main = () => {
144
142
  );
145
143
  signale.success(`copy success! - mac ${anotherArch}`);
146
144
 
147
- console.warn(`test: [${new Date().getTime()}] finish download dynamic library for MacOS`);
148
-
149
145
  rimraf.sync(outputDir);
150
146
  })
151
147
  .catch(err => {
@@ -3,8 +3,6 @@ const path = require('path');
3
3
  const fs = require('fs');
4
4
  const { arch, platform } = process;
5
5
 
6
- console.warn(`test: [${new Date().getTime()}] start postinstall to rsync dynamic library for MacOS`);
7
-
8
6
  function rsync() {
9
7
  if (platform === 'darwin') {
10
8
  const sourcePath = path.join(__dirname, `../../trtc-electron-sdk/build/mac-framework/${arch}/`);
@@ -34,6 +32,7 @@ function rsync() {
34
32
  targetPath: ${targetPath}
35
33
  `;
36
34
  console.error(errorMessage);
35
+ setTimeout(rsync, 5000);
37
36
  }
38
37
  }
39
38
  }