Skip to content

fix: use PROCESSOR_ARCHITECTURE for Windows arch detection in installer#79

Merged
rhuanbarreto merged 1 commit into
mainfrom
claude/competent-euler
Mar 18, 2026
Merged

fix: use PROCESSOR_ARCHITECTURE for Windows arch detection in installer#79
rhuanbarreto merged 1 commit into
mainfrom
claude/competent-euler

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Fixes Windows installer failing with unsupported architecture: . when run via irm | iex
  • Replaces [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture (a .NET enum that can stringify as empty in piped execution) with $env:PROCESSOR_ARCHITECTURE (a reliable Windows env var returning "AMD64" for x64)

Test plan

  • Run irm https://raw.githubusercontent.com/archgate/cli/main/install.ps1 | iex on a Windows x64 machine
  • Verify the architecture check passes and installation proceeds

… installer

RuntimeInformation::OSArchitecture returns a .NET enum that can
stringify as empty when the script is run via `irm | iex`, causing
the installer to reject valid x64 systems. PROCESSOR_ARCHITECTURE
is a reliable Windows env var that always returns "AMD64" for x64.
@rhuanbarreto rhuanbarreto merged commit 63afc7e into main Mar 18, 2026
6 checks passed
@rhuanbarreto rhuanbarreto deleted the claude/competent-euler branch March 18, 2026 21:02
@github-actions github-actions Bot mentioned this pull request Mar 18, 2026
rhuanbarreto added a commit that referenced this pull request Mar 20, 2026
…er (#79)

fix: use PROCESSOR_ARCHITECTURE env var for Windows arch detection in installer

RuntimeInformation::OSArchitecture returns a .NET enum that can
stringify as empty when the script is run via `irm | iex`, causing
the installer to reject valid x64 systems. PROCESSOR_ARCHITECTURE
is a reliable Windows env var that always returns "AMD64" for x64.
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