trtc-electron-sdk 11.3.502-alpha.2 → 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 +1 -1
- package/scripts/download.js +0 -4
- package/scripts/postinstall.js +1 -4
package/package.json
CHANGED
package/scripts/download.js
CHANGED
|
@@ -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 => {
|
package/scripts/postinstall.js
CHANGED
|
@@ -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,8 +32,7 @@ function rsync() {
|
|
|
34
32
|
targetPath: ${targetPath}
|
|
35
33
|
`;
|
|
36
34
|
console.error(errorMessage);
|
|
37
|
-
|
|
38
|
-
setTimeout(rsync, 5 * 1000);
|
|
35
|
+
setTimeout(rsync, 5000);
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
}
|