Skip to content

Commit b640020

Browse files
Dumbrisclaude
andauthored
fix: add hostArchitectures to PKG Distribution.xml to prevent Rosetta prompt (smart-mcp-proxy#268)
The macOS PKG installer was incorrectly prompting users to install Rosetta on Apple Silicon Macs, even though all binaries are native arm64. When using productbuild with a custom Distribution.xml, macOS Installer does not auto-detect architecture support. Without the hostArchitectures attribute, it assumes Rosetta is required. Adding hostArchitectures="arm64,x86_64" to the <options> element tells macOS Installer that the package supports both architectures natively, eliminating the unnecessary Rosetta prompt on ARM Macs. This is a known issue that affected fish-shell, PowerShell, and other projects using custom Distribution.xml files. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4fb4329 commit b640020

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/create-pkg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ cat > "$TEMP_DIR/Distribution.xml" << EOF
268268
<title>MCP Proxy ${VERSION#v}</title>
269269
<organization>com.smartmcpproxy</organization>
270270
<domains enable_localSystem="true"/>
271-
<options customize="never" require-scripts="true" rootVolumeOnly="true" />
271+
<options customize="never" require-scripts="true" rootVolumeOnly="true" hostArchitectures="arm64,x86_64" />
272272
273273
<!-- Define documents displayed at various steps -->
274274
<welcome file="welcome_en.rtf" mime-type="text/rtf"/>

0 commit comments

Comments
 (0)