Repository navigation
版本探测增加重试与数据降级,新增 --bundle 输出模式 - #2
Merged
Merged
Conversation
probe_version 失败时等 2s 重试一次(应对 macOS Gatekeeper 首次执行延迟);
仍失败则从二进制数据扫描 semver 常量池条目作为降级方案。
pipeline.run 在探测前先去 quarantine(此前仅 analyze.run 做了这一步,
pipeline 自己的探测调用在 quarantine 清除之前)。
新增 --bundle 模式: 创建 v{版本号}/ 目录,放入原始二进制和带后缀的换肤
二进制(默认后缀 skin,可通过 --suffix 自定义)。all 和 skin 命令均可用。
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.
Summary
probe_version()失败时等 2s 重试一次(应对 macOS Gatekeeper 首次执行新路径二进制的延迟);仍失败则从二进制数据扫描 semver 常量池条目作为降级方案(probe_version_from_data)pipeline.run()在自己的probe_version调用之前先清除 quarantine 属性(此前仅analyze.run做了这一步,pipeline 的探测在清除之前)v{版本号}/目录,放入原始二进制和带后缀的换肤二进制;all和skin命令均可用背景
实际换肤 2.1.281 bytecode 构建时遇到两个问题:
probe_version静默失败,导致rewrite_real_version=true时版本补丁被整体跳过,只在输出中留了一条 warning;第二次运行同一二进制就成功了(Gatekeeper 首次公证检查)用法
Test plan
python3 -m unittest discover -s tests -v)all --bundle在真实二进制上创建正确的目录结构