Repository navigation
fix(macos): quote the deployment target flag for the pet activation guard - #165
Merged
freedomkk-qfeng merged 2 commits intoOct 16, 2026
Merged
Conversation
…uard PowerShell 7.6 splits -mmacosx-version-min=15.0 at the dot when passing it to a native command, so clang++ receives a stray '.0' argument: clang++: error: no such file or directory: '.0' and the macOS assembly stops at the desktop pet activation guard. Quoting the argument passes it unchanged on every PowerShell version. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
问题
dsh-electron/scripts/assemble-macos.ps1编译桌宠窗口的激活保护模块时,传给 clang++ 的-mmacosx-version-min=15.0没有加引号。PowerShell 7.6 调用外部命令时会在小数点处把它拆开,clang++ 多收到一个.0参数:macOS 组装在
Desktop pet activation guard compilation failed处中止。在 macOS 27、PowerShell 7.6.6、Xcode 27 上可以稳定复现。修改
给这个参数加上单引号,所有 PowerShell 版本都会原样传递。同时刷新了
source-receipt.json。验证
prevent-activation.mm:退出码 0。PowerShell 7.6 splits the unquoted
-mmacosx-version-min=15.0at the dot when passing it to clang++, which then fails withno such file or directory: '.0'and stops macOS assembly at the pet activation guard. Quoting the argument keeps it intact on every PowerShell version.🤖 Generated with Claude Code