Skip to content

fix(macos): quote the deployment target flag for the pet activation guard - #165

Merged
freedomkk-qfeng merged 2 commits into
ECNU:mainfrom
wf0229:pr/macos-deployment-target-quote
Oct 16, 2026
Merged

freedomkk-qfeng merged 2 commits into
ECNU:mainfrom
wf0229:pr/macos-deployment-target-quote

Conversation

@wf0229

@wf0229 wf0229 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

问题

dsh-electron/scripts/assemble-macos.ps1 编译桌宠窗口的激活保护模块时,传给 clang++ 的 -mmacosx-version-min=15.0 没有加引号。PowerShell 7.6 调用外部命令时会在小数点处把它拆开,clang++ 多收到一个 .0 参数:

clang++: error: no such file or directory: '.0'

macOS 组装在 Desktop pet activation guard compilation failed 处中止。在 macOS 27、PowerShell 7.6.6、Xcode 27 上可以稳定复现。

修改

给这个参数加上单引号,所有 PowerShell 版本都会原样传递。同时刷新了 source-receipt.json。

验证

  • 用修改后的命令单独编译 prevent-activation.mm:退出码 0。
  • 在 v0.4.4 上打完整的 macOS arm64 包:通过,并且打出的 app 能正常启动。

PowerShell 7.6 splits the unquoted -mmacosx-version-min=15.0 at the dot when passing it to clang++, which then fails with no 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

wf0229 and others added 2 commits October 16, 2026 02:19
…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]>
@freedomkk-qfeng
freedomkk-qfeng merged commit 71c96d1 into ECNU:main Oct 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants