Repository navigation
fix(permissions): 补齐麦克风授权与 macOS 音频签名权限 - #822
Merged
Merged
Conversation
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.
问题与改动
macOS 的语音输入需要同时具备 Electron 放行、系统麦克风授权和 Hardened Runtime 音频输入 entitlement。现有主分支虽然放行了 media,但没有限制媒体类型,也没有显式声明音频输入签名权限及麦克风用途。
对照官方 Desktop f3803c9 补齐:
验证
新增行为回归:媒体类型、窗口/frame/origin、OS 授权成功/拒绝/异常、窗口生命周期和共享 Session。macOS 夹具使用锁定 electron-builder 的实际 entitlement 选择逻辑和系统 codesign,对主程序/Helper 做真实 Hardened Runtime 签名,验证缺少 Helper 权限会被拦截。Windows 回归配置纳入窗口权限测试。
验收边界
没有替换本机已安装应用,也没有重置系统麦克风授权或生产 Profile。完整签名/公证安装包的首次授权、真实录音到转写及 Windows 麦克风隐私开关仍须原生验收;签名夹具与策略测试不替代这些验收。步骤已记录在 release runbook。