Skip to content

fix(install): detect arch via OSArchitecture, not PROCESSOR_ARCHITECTURE (arm64)#908

Merged
DeusData merged 1 commit into
mainfrom
fix/installps1-osarch
Jul 6, 2026
Merged

fix(install): detect arch via OSArchitecture, not PROCESSOR_ARCHITECTURE (arm64)#908
DeusData merged 1 commit into
mainfrom
fix/installps1-osarch

Conversation

@DeusData

@DeusData DeusData commented Jul 6, 2026

Copy link
Copy Markdown
Owner

install.ps1 reported "arch: amd64" on windows-11-arm and 404'd on the amd64 zip:
$env:PROCESSOR_ARCHITECTURE reports the emulated "AMD64" for an x64 process under
ARM64 emulation, and PROCESSOR_ARCHITEW6432 is unset for 64-bit emulated procs.
RuntimeInformation.OSArchitecture reports the real OS arch (Arm64) regardless of
process emulation. Same emulated-arch class as the smoke uname fix (#907); this
one is a genuine product improvement -- real ARM users invoking install.ps1 from
an x64 context now get the arm64 binary.

@DeusData DeusData merged commit 8e798ff into main Jul 6, 2026
9 checks passed
…URE (arm64)

install.ps1 reported "arch: amd64" on windows-11-arm and 404'd on the amd64 zip:
$env:PROCESSOR_ARCHITECTURE reports the emulated "AMD64" for an x64 process under
ARM64 emulation, and PROCESSOR_ARCHITEW6432 is unset for 64-bit emulated procs.
RuntimeInformation.OSArchitecture reports the real OS arch (Arm64) regardless of
process emulation. Same emulated-arch class as the smoke uname fix (#907); this
one is a genuine product improvement -- real ARM users invoking install.ps1 from
an x64 context now get the arm64 binary.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
pull Bot pushed a commit to MrDolphin/codebase-memory-mcp that referenced this pull request Jul 6, 2026
…e 13)

install.ps1 kept detecting arch=amd64 on windows-11-arm because it runs under x64
emulation, where neither $env:PROCESSOR_ARCHITECTURE nor .NET OSArchitecture (on
Windows PowerShell 5.1) reports the real Arm64. Add a CBM_ARCH env override to
install.ps1 (wins over auto-detect; also a genuine escape hatch for emulated
invocations) and have smoke Phase 13 pass the authoritative DL_ARCH. Deterministic
-- no reliance on in-process detection under emulation. Same emulated-arch class
as DeusData#907 (uname) and DeusData#908.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
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.

1 participant