mediasoup 3.12.14 → 3.12.15
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/node/lib/Worker.js +1 -1
- package/node/lib/index.d.ts +1 -1
- package/node/lib/index.js +1 -1
- package/npm-scripts.mjs +3 -1
- package/package.json +1 -1
- package/worker/scripts/getmake.py +13 -2
package/node/lib/Worker.js
CHANGED
|
@@ -90,7 +90,7 @@ class Worker extends EnhancedEventEmitter_1.EnhancedEventEmitter {
|
|
|
90
90
|
// options
|
|
91
91
|
{
|
|
92
92
|
env: {
|
|
93
|
-
MEDIASOUP_VERSION: '3.12.
|
|
93
|
+
MEDIASOUP_VERSION: '3.12.15',
|
|
94
94
|
// Let the worker process inherit all environment variables, useful
|
|
95
95
|
// if a custom and not in the path GCC is used so the user can set
|
|
96
96
|
// LD_LIBRARY_PATH environment variable for runtime.
|
package/node/lib/index.d.ts
CHANGED
package/node/lib/index.js
CHANGED
package/npm-scripts.mjs
CHANGED
|
@@ -445,7 +445,9 @@ function installMsysMake()
|
|
|
445
445
|
pythonPath = String(res.stdout).trim();
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
|
|
448
|
+
const dir = path.resolve('worker/out/msys');
|
|
449
|
+
|
|
450
|
+
executeCmd(`${pythonPath} worker\\scripts\\getmake.py --dir="${dir}"`);
|
|
449
451
|
}
|
|
450
452
|
|
|
451
453
|
function ensureDir(dir)
|
package/package.json
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import io, hashlib, tarfile, urllib.request
|
|
1
|
+
import argparse, io, hashlib, tarfile, urllib.request
|
|
2
|
+
|
|
3
|
+
argParser = argparse.ArgumentParser()
|
|
4
|
+
|
|
5
|
+
argParser.add_argument(
|
|
6
|
+
'--dir',
|
|
7
|
+
type=str,
|
|
8
|
+
required=True,
|
|
9
|
+
help='absolute path of the directoy in which fetched content will be placed'
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
args = argParser.parse_args()
|
|
2
13
|
|
|
3
14
|
def get(url, digest):
|
|
4
15
|
data = urllib.request.urlopen(url).read()
|
|
5
16
|
assert hashlib.sha256(data).hexdigest() == digest
|
|
6
17
|
tar = tarfile.open(fileobj=io.BytesIO(data))
|
|
7
|
-
tar.extractall(
|
|
18
|
+
tar.extractall(args.dir)
|
|
8
19
|
tar.close()
|
|
9
20
|
|
|
10
21
|
get('https://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/msys-1.0.19-1/msysCORE-1.0.19-1-msys-1.0.19-bin.tar.xz/download', '8c4157d739a460f85563bc4451e9f1bbd42b13c4f63770d43b9f45a781f07858')
|