The PowerShell installation script does not detect the system architecture on Windows ARM devices. When running the install command on a Windows 11 ARM laptop:
irm https://deno.land/install.ps1 | iex
The script always downloads the x86_64 version (x86_64-pc-windows-msvc) regardless of the system's actual architecture, because the target is hardcoded on line 19 of the script:
= 'x86_64-pc-windows-msvc'
While Deno does provide ARM64 builds for Windows (as noted in their 2.7 release: "Windows ARM" support), the install script does not utilize them. Users on Windows ARM devices get the x86_64 binary that runs via emulation instead of the native ARM64 version.
Expected behavior:
The script should detect the system architecture and download the appropriate version:
x86_64-pc-windows-msvc for x86_64 systems
aarch64-pc-windows-msvc for ARM64 systems
Environment:
- Windows 11 ARM (e.g., Surface Pro X, Samsung Galaxy Book, etc.)
- PowerShell
The PowerShell installation script does not detect the system architecture on Windows ARM devices. When running the install command on a Windows 11 ARM laptop:
The script always downloads the x86_64 version (
x86_64-pc-windows-msvc) regardless of the system's actual architecture, because the target is hardcoded on line 19 of the script:While Deno does provide ARM64 builds for Windows (as noted in their 2.7 release: "Windows ARM" support), the install script does not utilize them. Users on Windows ARM devices get the x86_64 binary that runs via emulation instead of the native ARM64 version.
Expected behavior:
The script should detect the system architecture and download the appropriate version:
x86_64-pc-windows-msvcfor x86_64 systemsaarch64-pc-windows-msvcfor ARM64 systemsEnvironment: