Repository navigation
refactor: 原生模块构建脚本 - #50
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
该 PR 重构了原生模块构建脚本 scripts/build-native.ts,将原先基于 execSync 的调用改为 spawnSync 并补齐参数解析与错误处理,以支持更可控的构建流程与参数透传。
Changes:
- 使用
spawnSync替代execSync,并对进程启动失败 / 信号终止 / 非 0 退出码做了显式判断与输出。 - 新增
parseArgs():支持--dev与通过--将额外参数透传给napi build。 - 调整原生模块列表定义位置,并按平台条件启用 Windows 专属模块构建。
Comment on lines
+94
to
+95
| const buildType = options.isDev ? "debug" : "release"; | ||
| console.log(`[BuildNative] 构建 ${mod.name} (${buildType})`); |
MoYingJi
force-pushed
the
pr/scripts
branch
2 times, most recently
from
June 24, 2026 17:08
b9b5182 to
2fd8d66
Compare
roarrabbit
pushed a commit
to roarrabbit/SPlayer-Next
that referenced
this pull request
Aug 27, 2026
refactor: 原生模块构建脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.