Skip to content

Commit

Permalink
install script
Browse files Browse the repository at this point in the history
  • Loading branch information
paperdave committed Apr 1, 2024
1 parent 9e6e8b0 commit 2dd2fc6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/cli/install.ps1
Original file line number Diff line number Diff line change
@@ -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%
Expand All @@ -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
}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2dd2fc6

Please sign in to comment.