mediasoup 3.12.13 → 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 +21 -6
- package/package.json +11 -11
- 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
|
@@ -418,21 +418,36 @@ function installMsysMake()
|
|
|
418
418
|
{
|
|
419
419
|
logInfo('installMsysMake()');
|
|
420
420
|
|
|
421
|
-
let
|
|
421
|
+
let pythonPath;
|
|
422
422
|
|
|
423
|
-
|
|
423
|
+
// If PYTHON environment variable is given, use it.
|
|
424
|
+
if (process.env.PYTHON)
|
|
424
425
|
{
|
|
425
|
-
|
|
426
|
+
pythonPath = process.env.PYTHON;
|
|
427
|
+
}
|
|
428
|
+
// Otherwise ensure python3.exe is available in the PATH.
|
|
429
|
+
else
|
|
430
|
+
{
|
|
431
|
+
let res = spawnSync('where', [ 'python3.exe' ]);
|
|
426
432
|
|
|
427
433
|
if (res.status !== 0)
|
|
428
434
|
{
|
|
429
|
-
|
|
435
|
+
res = spawnSync('where', [ 'python.exe' ]);
|
|
430
436
|
|
|
431
|
-
|
|
437
|
+
if (res.status !== 0)
|
|
438
|
+
{
|
|
439
|
+
logError('`installMsysMake() | cannot find Python executable');
|
|
440
|
+
|
|
441
|
+
exitWithError();
|
|
442
|
+
}
|
|
432
443
|
}
|
|
444
|
+
|
|
445
|
+
pythonPath = String(res.stdout).trim();
|
|
433
446
|
}
|
|
434
447
|
|
|
435
|
-
|
|
448
|
+
const dir = path.resolve('worker/out/msys');
|
|
449
|
+
|
|
450
|
+
executeCmd(`${pythonPath} worker\\scripts\\getmake.py --dir="${dir}"`);
|
|
436
451
|
}
|
|
437
452
|
|
|
438
453
|
function ensureDir(dir)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mediasoup",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.15",
|
|
4
4
|
"description": "Cutting Edge WebRTC Video Conferencing",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
"uuid": "^9.0.1"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@octokit/rest": "^20.0.
|
|
99
|
-
"@types/debug": "^4.1.
|
|
100
|
-
"@types/jest": "^29.5.
|
|
101
|
-
"@types/node": "^20.
|
|
102
|
-
"@types/uuid": "^9.0.
|
|
103
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
104
|
-
"@typescript-eslint/parser": "^6.
|
|
105
|
-
"eslint": "^8.
|
|
106
|
-
"eslint-plugin-jest": "^27.4.
|
|
98
|
+
"@octokit/rest": "^20.0.2",
|
|
99
|
+
"@types/debug": "^4.1.10",
|
|
100
|
+
"@types/jest": "^29.5.6",
|
|
101
|
+
"@types/node": "^20.8.7",
|
|
102
|
+
"@types/uuid": "^9.0.6",
|
|
103
|
+
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
104
|
+
"@typescript-eslint/parser": "^6.8.0",
|
|
105
|
+
"eslint": "^8.51.0",
|
|
106
|
+
"eslint-plugin-jest": "^27.4.2",
|
|
107
107
|
"jest": "^29.7.0",
|
|
108
|
-
"marked": "^9.
|
|
108
|
+
"marked": "^9.1.2",
|
|
109
109
|
"open-cli": "^7.2.0",
|
|
110
110
|
"pick-port": "^1.0.1",
|
|
111
111
|
"sctp": "^1.0.0",
|
|
@@ -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')
|