From 2dd2fc6ed0207cd8615c3181fa24ee08dac350b9 Mon Sep 17 00:00:00 2001 From: dave caruso Date: Mon, 1 Apr 2024 01:41:18 -0700 Subject: [PATCH] install script --- src/cli/install.ps1 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/cli/install.ps1 b/src/cli/install.ps1 index 3f8454485e3bc..8bd94163055b6 100644 --- a/src/cli/install.ps1 +++ b/src/cli/install.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/env pwsh param( # TODO: change this to 'latest' when Bun for Windows is stable. - [String]$Version = "canary", + [String]$Version = "latest", # Forces installing the baseline build regardless of what CPU you are actually using. [Switch]$ForceBaseline = $false, # Skips adding the bun.exe directory to the user's %PATH% @@ -18,7 +18,7 @@ param( # filter out 32 bit + ARM if ($env:PROCESSOR_ARCHITECTURE -ne "AMD64") { Write-Output "Install Failed:" - Write-Output "Bun for Windows is only available for x86 64-bit Windows.`n" + Write-Output "Bun for Windows is currently only available for x86 64-bit Windows.`n" return 1 } @@ -103,10 +103,6 @@ function Install-Bun { elseif ($Version -match "^v\d+\.\d+\.\d+$") { $Version = "bun-$Version" } - # todo: remove this when Bun for Windows is stable - elseif ($Version -eq "latest") { - $Version = "canary" - } $Arch = "x64" $IsBaseline = $ForceBaseline @@ -264,8 +260,6 @@ function Install-Bun { Write-Output "${C_GREEN}Bun ${DisplayVersion} was installed successfully!${C_RESET}" Write-Output "The binary is located at ${BunBin}\bun.exe`n" - Write-Warning "Bun for Windows is currently experimental.`nFor a more stable experience, install Bun within WSL:`nhttps://bun.sh/docs/installation`n" - $hasExistingOther = $false; try { $existing = Get-Command bun -ErrorAction