agora-toolchain 3.6.3 → 3.7.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": "agora-toolchain",
3
- "version": "3.6.3",
3
+ "version": "3.7.0",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "agora-tc-transpile": "./scripts/transpile.js",
@@ -45,6 +45,7 @@ module.exports = {
45
45
  electron: 'commonjs2 electron',
46
46
  winston: 'commonjs2 winston',
47
47
  'node:fs': 'commonjs2 node:fs',
48
+ 'node:fs/promises': 'commonjs2 node:fs/promises',
48
49
  fs: 'commonjs2 fs',
49
50
  'node:path': 'commonjs2 node:path',
50
51
  path: 'commonjs2 path',
@@ -93,9 +93,9 @@ const options = {
93
93
  // gatekeeperAssess: true,
94
94
  entitlements: resolveCwd('installer/mac/entitlements.mac.plist'),
95
95
  extendInfo: {
96
- NSMicrophoneUsageDescription: 'Fcr Meeting wants to acquire your microphone permission',
97
- NSCameraUsageDescription: 'Fcr Meeting wants to acquire your camera permission',
98
- NSScreenCaptureDescription: 'Fcr Meeting wants to acquire your screen capture permission',
96
+ NSMicrophoneUsageDescription: 'This app wants to acquire your microphone permission',
97
+ NSCameraUsageDescription: 'This app wants to acquire your camera permission',
98
+ NSScreenCaptureDescription: 'This app wants to acquire your screen capture permission',
99
99
  'com.apple.security.device.audio-input': true,
100
100
  'com.apple.security.cs.allow-jit': true,
101
101
  'com.apple.security.cs.allow-unsigned-executable-memory': true,
@@ -76,7 +76,31 @@ const options = {
76
76
  output: resolveCwd('release'),
77
77
  buildResources: resolveCwd('installer/resources'),
78
78
  },
79
- files: ['!**/artifactory_deps/**/*', '!**/mac-release/**/*'],
79
+ files: [
80
+ 'dist/**/*',
81
+ '!**/artifactory_deps/**/*',
82
+ '!**/mac-release/**/*',
83
+ '!**/scr/**/*',
84
+ "!**/node_modules/**/{CHANGELOG.md,README.md,README,readme.md,README.zh.md}",
85
+ "!**/node_modules/**/{nodemon.json,rollup.config.js,tsconfig.json,typedoc.json,rc_message.proto}",
86
+ "!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
87
+ "!**/node_modules/.bin",
88
+ "!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}",
89
+ "!.editorconfig",
90
+ "!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}",
91
+ "!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}",
92
+ "!**/{appveyor.yml,.travis.yml,circle.yml}",
93
+ "!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}",
94
+ "!**/*.dSYM",
95
+ "!**/*.{lproj}",
96
+ "!**/*.config.js",
97
+ "!**/*.config.ts",
98
+ "!**/*.config.json",
99
+ "!**/*.config.yaml",
100
+ "!**/*.config.yml",
101
+ "!**/*.config.xml",
102
+ "!**/*.config.html",
103
+ ],
80
104
  extraResources: [
81
105
  // 内置资源
82
106
  {
@@ -111,9 +135,9 @@ const options = {
111
135
  // gatekeeperAssess: true,
112
136
  entitlements: resolveCwd('installer/mac/entitlements.mac.plist'),
113
137
  extendInfo: {
114
- NSMicrophoneUsageDescription: 'Fcr Meeting wants to acquire your microphone permission',
115
- NSCameraUsageDescription: 'Fcr Meeting wants to acquire your camera permission',
116
- NSScreenCaptureDescription: 'Fcr Meeting wants to acquire your screen capture permission',
138
+ NSMicrophoneUsageDescription: 'This app wants to acquire your microphone permission',
139
+ NSCameraUsageDescription: 'This app wants to acquire your camera permission',
140
+ NSScreenCaptureDescription: 'This app wants to acquire your screen capture permission',
117
141
  LSUIElement: 1,
118
142
  },
119
143
  },
@@ -2,11 +2,14 @@ const { spawn } = require('child_process');
2
2
  const os = require('os');
3
3
 
4
4
  const _spawn = (cmd, args, options) => {
5
+ const presetOptions = {};
6
+
5
7
  if (os.platform() === 'win32') {
6
8
  cmd = `${cmd}.cmd`;
9
+ presetOptions.shell = true;
7
10
  }
8
11
 
9
- return spawn(cmd, args, options);
12
+ return spawn(cmd, args, { ...presetOptions, ...options });
10
13
  };
11
14
 
12
15
  module.exports = {