Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
bc55f22c
Unverified
提交
bc55f22c
authored
12月 14, 2023
作者:
Iñaki Baz Castillo
提交者:
GitHub
12月 14, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
npm installation: Don't require Python if valid worker prebuilt binary is fetched (#1265)
上级
fb83d4f4
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
13 行删除
+22
-13
CHANGELOG.md
CHANGELOG.md
+2
-1
npm-scripts.mjs
npm-scripts.mjs
+20
-11
package.json
package.json
+0
-1
没有找到文件。
CHANGELOG.md
浏览文件 @
bc55f22c
...
...
@@ -3,7 +3,8 @@
### NEXT
*
worker: Disable RtcLogger usage if not enabled (
[
PR #1264
](
https://github.com/versatica/mediasoup/pull/1264
)
).
*
worker: Disable
`RtcLogger`
usage if not enabled (
[
PR #1264
](
https://github.com/versatica/mediasoup/pull/1264
)
).
*
npm installation: Don't require Python if valid worker prebuilt binary is fetched (
[
PR #1265
](
https://github.com/versatica/mediasoup/pull/1265
)
).
### 3.13.11
...
...
npm-scripts.mjs
浏览文件 @
bc55f22c
...
...
@@ -47,13 +47,6 @@ async function run()
{
switch
(
task
)
{
case
'preinstall'
:
{
installInvoke
();
break
;
}
// As per NPM documentation (https://docs.npmjs.com/cli/v9/using-npm/scripts)
// `prepare` script:
//
...
...
@@ -167,6 +160,8 @@ async function run()
case
'format:worker'
:
{
installInvoke
();
executeCmd
(
`"
${
PYTHON
}
" -m invoke -r worker format`
);
break
;
...
...
@@ -351,6 +346,8 @@ function buildWorker()
{
logInfo
(
'buildWorker()'
);
installInvoke
();
executeCmd
(
`"
${
PYTHON
}
" -m invoke -r worker mediasoup-worker`
);
}
...
...
@@ -358,6 +355,8 @@ function cleanWorkerArtifacts()
{
logInfo
(
'cleanWorkerArtifacts()'
);
installInvoke
();
// Clean build artifacts except `mediasoup-worker`.
executeCmd
(
`"
${
PYTHON
}
" -m invoke -r worker clean-build`
);
// Clean downloaded dependencies.
...
...
@@ -377,6 +376,8 @@ function lintWorker()
{
logInfo
(
'lintWorker()'
);
installInvoke
();
executeCmd
(
`"
${
PYTHON
}
" -m invoke -r worker lint`
);
}
...
...
@@ -384,6 +385,8 @@ function flatcNode()
{
logInfo
(
'flatcNode()'
);
installInvoke
();
// Build flatc if needed.
executeCmd
(
`"
${
PYTHON
}
" -m invoke -r worker flatc`
);
...
...
@@ -410,6 +413,8 @@ function flatcWorker()
{
logInfo
(
'flatcWorker()'
);
installInvoke
();
executeCmd
(
`"
${
PYTHON
}
" -m invoke -r worker flatc`
);
}
...
...
@@ -431,6 +436,8 @@ function testWorker()
{
logInfo
(
'testWorker()'
);
installInvoke
();
executeCmd
(
`"
${
PYTHON
}
" -m invoke -r worker test`
);
}
...
...
@@ -575,6 +582,8 @@ async function downloadPrebuiltWorker()
{
const
resolvedBinPath
=
path
.
resolve
(
WORKER_RELEASE_BIN_PATH
);
// This will always fail on purpose, but if status code is 41 then
// it's good.
execSync
(
`"
${
resolvedBinPath
}
"`
,
{
...
...
@@ -583,15 +592,15 @@ async function downloadPrebuiltWorker()
env
:
{}
}
);
logInfo
(
'downloadPrebuiltWorker() | fetched mediasoup-worker prebuilt binary is valid for current host'
);
}
catch
(
error
)
{
if
(
error
.
status
===
41
)
{
logInfo
(
'downloadPrebuiltWorker() | fetched mediasoup-worker prebuilt binary is valid for current host'
);
resolve
(
true
);
}
else
...
...
package.json
浏览文件 @
bc55f22c
...
...
@@ -49,7 +49,6 @@
"nodejs"
],
"scripts"
:
{
"preinstall"
:
"node npm-scripts.mjs preinstall"
,
"prepare"
:
"node npm-scripts.mjs prepare"
,
"postinstall"
:
"node npm-scripts.mjs postinstall"
,
"typescript:build"
:
"node npm-scripts.mjs typescript:build"
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论