Honor quiet update mode in installers
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s
ci / test (push) Canceled after 0s
ci / fuzz-smoke (push) Canceled after 0s
ci / windows-client (push) Canceled after 0s
ci / package-release (linux-x86_64, ubuntu-latest, , , ) (push) Canceled after 0s
ci / package-release (macos-aarch64, macos-14, , , ) (push) Canceled after 0s
ci / package-release (macos-x86_64, macos-13, , , ) (push) Canceled after 0s
ci / package-release (windows-aarch64, windows-latest, aarch64, windows, aarch64-pc-windows-msvc) (push) Canceled after 0s
ci / package-release (windows-x86_64, windows-latest, , , ) (push) Canceled after 0s
ci / remote-bench (push) Canceled after 0s
ci / publish-gitea-release (push) Canceled after 0s
This commit is contained in:
+23
-16
@@ -17,6 +17,13 @@ param(
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$Quiet = $env:DOSH_UPDATE_QUIET -and $env:DOSH_UPDATE_QUIET -ne "0"
|
||||
|
||||
function Write-Info($Message) {
|
||||
if (-not $Quiet) {
|
||||
Write-Host $Message
|
||||
}
|
||||
}
|
||||
|
||||
function Require-Command($Name) {
|
||||
if (-not (Get-Command $Name -ErrorAction SilentlyContinue)) {
|
||||
@@ -31,7 +38,7 @@ function Ensure-Cargo {
|
||||
if (-not (Get-Command winget -ErrorAction SilentlyContinue)) {
|
||||
throw "cargo not found and winget is unavailable; install Rust from https://rustup.rs or set DOSH_USE_PREBUILT=1"
|
||||
}
|
||||
Write-Host "cargo not found; installing Rust toolchain with winget/rustup"
|
||||
Write-Info "cargo not found; installing Rust toolchain with winget/rustup"
|
||||
winget install --id Rustlang.Rustup -e --accept-package-agreements --accept-source-agreements
|
||||
$cargoBin = Join-Path $HOME ".cargo\bin"
|
||||
if (Test-Path $cargoBin) {
|
||||
@@ -358,7 +365,7 @@ function Install-Prebuilt {
|
||||
$extract = Join-Path $tmp "extract"
|
||||
try {
|
||||
New-Item -ItemType Directory -Force -Path $tmp, $extract | Out-Null
|
||||
Write-Host "Trying Dosh prebuilt $(Release-ArtifactName)"
|
||||
Write-Info "Trying Dosh prebuilt $(Release-ArtifactName)"
|
||||
Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $zip
|
||||
Verify-ArchiveChecksum $url $zip
|
||||
Expand-Archive -Force -Path $zip -DestinationPath $extract
|
||||
@@ -427,7 +434,7 @@ if ($UsePrebuilt) {
|
||||
if ($BinaryRequired) {
|
||||
throw "prebuilt install failed and DOSH_BINARY_REQUIRED=1"
|
||||
}
|
||||
Write-Host "Falling back to source build"
|
||||
Write-Info "Falling back to source build"
|
||||
Install-FromSource
|
||||
}
|
||||
} else {
|
||||
@@ -488,17 +495,17 @@ predict = true
|
||||
|
||||
Add-UserPath $bindir
|
||||
|
||||
Write-Host "Installed Dosh client to $bindir"
|
||||
Write-Host "Configured UDP port $Port"
|
||||
Write-Host ""
|
||||
Write-Info "Installed Dosh client to $bindir"
|
||||
Write-Info "Configured UDP port $Port"
|
||||
Write-Info ""
|
||||
$displayServer = if ($Server) { $Server } else { "user@host" }
|
||||
Write-Host "Client commands:"
|
||||
Write-Host " $bindir\dosh.exe $displayServer"
|
||||
Write-Host " $bindir\dosh.exe setup <ssh-alias>"
|
||||
Write-Host " $bindir\dosh.exe update --check"
|
||||
Write-Host ""
|
||||
Write-Host "Client config:"
|
||||
Write-Host " $configDir\client.toml"
|
||||
Write-Host " $configDir\hosts.toml"
|
||||
Write-Host ""
|
||||
Write-Host "Open a new terminal for PATH changes to apply."
|
||||
Write-Info "Client commands:"
|
||||
Write-Info " $bindir\dosh.exe $displayServer"
|
||||
Write-Info " $bindir\dosh.exe setup <ssh-alias>"
|
||||
Write-Info " $bindir\dosh.exe update --check"
|
||||
Write-Info ""
|
||||
Write-Info "Client config:"
|
||||
Write-Info " $configDir\client.toml"
|
||||
Write-Info " $configDir\hosts.toml"
|
||||
Write-Info ""
|
||||
Write-Info "Open a new terminal for PATH changes to apply."
|
||||
|
||||
Reference in New Issue
Block a user