Repository navigation
修复 v1.0.2 发行失败并加固 CI 与 Release - #17
Merged
Merged
Conversation
v1.0.2 的 Release 在 12 分钟构建后因 www.gnu.org 连接超时失败。该文本固定 不变,改为随仓库保存并校验摘要;用 .gitattributes 防止 Windows 检出转换换行。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
私钥和写权限收窄到需要的步骤,构建前预下载全部锁定依赖,固定 Rust、pnpm、 action 与测试依赖版本。CI 增加 main 推送以写入缓存,PR 与标签只读取。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
Release 预演结果(Windows x64)分支手动运行 41029604474,提交 下载 artifact 后核对:
|
areyoubugcoder
added a commit
that referenced
this pull request
Oct 30, 2026
修复 v1.0.2 发行失败并加固 CI 与 Release
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.
问题与改动后行为
v1.0.2的 Release 工作流(run 41007588919)在约 12 分钟构建后失败:组装便携包时下载www.gnu.org上的 LGPL 全文,连接超时(WinError 10060)。复盘时一并收紧了发行流程。使用者可见的应用行为不变。发行修复
tools/licenses/Frida-COPYING.LIB,内容取自 v1.0.1 发行包,组装时校验摘要,不再联网。.gitattributes禁止转换该目录的换行,否则 Windows 检出后摘要会变。native/test_runtime_lock.py,在构建前校验摘要。安全
env收窄到prepare与安装包构建两个步骤,不再暴露给依赖安装、构建脚本和测试。contents: read,只有publish持有写权限;checkout 不保留凭据。release.yml的 action 全部固定到 SHA,ci.yml的rust-cache同样固定。可靠性
package-windows-release.py --prefetch在预检中下载全部锁定依赖,网络问题在构建前暴露。rust-toolchain.toml固定 Rust 1.99.1,取代浮动的 stable,本地开发也使用该版本。packageManager固定 pnpm 10.29.2,与官网 workflow 和本地一致;CI 与 Release 原先使用 pnpm 9。native/requirements.txt固定 cffi 与 pycparser,测试依赖与发行包一致;组装时校验全部锁定包。timeout-minutes;CI 的 clippy 增加--locked。缓存
rust-cache只在 main 写入,PR 与标签只读取。docs/app-updates.md。文档已同步:
README.md、CONTRIBUTING.md、THIRD-PARTY-NOTICES.md、docs/app-updates.md、docs/windows-standalone.md。验证
actionlint、test_ci*.py、tsc、pnpm test(44 + 6 项)、native/test_runtime_lock.py、cargo fmt --check(Rust 1.99.1)均通过。--prefetch下载并校验 5 个依赖;用伪造 PE 运行组装脚本成功,许可收集在 pnpm 10.29.2 下得到 Rust 439 项、前端 255 项。core.autocrlf=true模拟检出时摘要保持cc535c21…;对照组无.gitattributes时变为d486a19b…。提交检查
🤖 Generated with Claude Code