Repository navigation
fix(macos): 仅在签名要求变化时重置 TCC 授权 - #1245
Open
DragonNameLeo wants to merge 1 commit into
Open
DragonNameLeo wants to merge 1 commit into
DragonNameLeo wants to merge 1 commit into
Conversation
Ad-hoc builds still reset Accessibility / Microphone on every install, since their cdhash-based requirement changes each build. A stable signing identity keeps the same designated requirement, so its grants now survive reinstalls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YJvDYNu6QoSEhJ4yGSuRqk
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.
摘要
无对应 issue。
build-mac.sh以INSTALL=1安装时每次都会tccutil reset辅助功能和麦克风授权。ad-hoc 签名的 designated requirement 绑定 cdhash,每次构建都会变化,所以重置是必要的;但使用固定签名证书(APPLE_SIGNING_IDENTITY)时 requirement 不变,授权本可以保留,现在却每次重装都要重新授权。修复 / 新增 / 改进
/Applications/OpenLess.app与新构建产物的codesign -d -r-,只有不一致(或取不到新的 requirement)时才重置授权兼容
INSTALL=1的安装步骤测试计划
bash -n openless-all/app/scripts/build-mac.shtccutil reset,原有授权得以保留备注:
prettier --check scripts/build-mac.sh在beta上本来就有一处与本 PR 无关的格式提示(第 110 行),本 PR 未改动。🤖 Generated with Claude Code
https://claude.ai/code/session_01Abbfv5hvANpC7Sku5KEXJ3