replace Write-Output with Write-Host for messages

This commit is contained in:
amd64fox 2025-11-14 05:33:05 +03:00
parent 187fc4d439
commit 336fe44b5b

View file

@ -22,13 +22,13 @@ function Find-BuildInfo {
$match = [regex]::Match($line, $regex)
if ($match.Success) {
$buildType = $match.Groups[1].Value
Write-Output "build type: $buildType"
Write-Host "build type: $buildType"
return $buildType
}
}
if (-not $found) {
Write-Output "Билд не найден"
Write-Host "Билд не найден"
return $false
}
}
@ -57,13 +57,13 @@ function Get-BuildTypeFromUrl {
}
try {
Write-Output "Скачивание файла из $Url..."
Write-Host "Скачивание файла из $Url..."
Invoke-WebRequest -Uri $Url -OutFile $exePath
Write-Output "Файл сохранен в $exePath"
Write-Host "Файл сохранен в $exePath"
Write-Output "Распаковка файла в $destinationPath..."
Write-Host "Распаковка файла в $destinationPath..."
Start-Process -Wait -FilePath $exePath -ArgumentList "/extract `"$destinationPath`""
Write-Output "Распаковка завершена"
Write-Host "Распаковка завершена"
$dllPath = Join-Path $destinationPath "Spotify.dll"
$exePathForAnalysis = Join-Path $destinationPath "Spotify.exe"