diff options
Diffstat (limited to 'bootstrap-win')
| -rw-r--r-- | bootstrap-win/neovim.ps1 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bootstrap-win/neovim.ps1 b/bootstrap-win/neovim.ps1 index 548583e..64de8a1 100644 --- a/bootstrap-win/neovim.ps1 +++ b/bootstrap-win/neovim.ps1 | |||
| @@ -53,10 +53,11 @@ function Install-WingetPackage([string]$Binary, [string]$Id) { | |||
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | Write-Step "winget install $Id" | 55 | Write-Step "winget install $Id" |
| 56 | winget install --id $Id -e --source winget --accept-package-agreements --accept-source-agreements --silent | Out-Null | 56 | $output = winget install --id $Id -e --source winget --accept-package-agreements --accept-source-agreements --silent 2>&1 |
| 57 | 57 | ||
| 58 | if ($LASTEXITCODE -ne 0) { | 58 | if ($LASTEXITCODE -ne 0) { |
| 59 | Write-Warn "winget install $Id fehlgeschlagen (Binary '$Binary' nicht gefunden). Pruefen mit: winget search $Id" | 59 | $lastLine = ($output | Select-Object -Last 3) -join " / " |
| 60 | Write-Warn "winget install $Id fehlgeschlagen (Binary '$Binary' nicht gefunden): $lastLine -- Pruefen mit: winget search $Id" | ||
| 60 | return | 61 | return |
| 61 | } | 62 | } |
| 62 | 63 | ||
| @@ -140,7 +141,10 @@ function Install-Tools { | |||
| 140 | # dauerhaft in den User-PATH kopieren): | 141 | # dauerhaft in den User-PATH kopieren): |
| 141 | # $userPath = [Environment]::GetEnvironmentVariable("PATH", "User") | 142 | # $userPath = [Environment]::GetEnvironmentVariable("PATH", "User") |
| 142 | # [Environment]::SetEnvironmentVariable("PATH", "$userPath;$env:USERPROFILE\dotfiles\windows\bin", "User") | 143 | # [Environment]::SetEnvironmentVariable("PATH", "$userPath;$env:USERPROFILE\dotfiles\windows\bin", "User") |
| 143 | Install-WingetPackage -Binary "make" -Id "GnuWin32.Make" | 144 | # GnuWin32.Make ist im Praxistest fehlgeschlagen (Paket 2006er-Stand, |
| 145 | # unklar ob im winget-Repo ueberhaupt noch gepflegt). ezwinports.make | ||
| 146 | # ist ein aktiver gepflegter GNU-Make-Port fuer Windows. | ||
| 147 | Install-WingetPackage -Binary "make" -Id "ezwinports.make" | ||
| 144 | } | 148 | } |
| 145 | 149 | ||
| 146 | function Install-Lsp { | 150 | function Install-Lsp { |
