# Cuvex: local SHA-256 verification; no network or installation. & { $folder = $PSScriptRoot $file = Join-Path $folder 'Cuvex-Desktop-1.0.0-beta.9.14.1-Windows-x64.zip' Write-Host 'CUVEX-DOWNLOAD WIRD GEPRÜFT…' -ForegroundColor Cyan Write-Host ('Heruntergeladene Datei: ' + $file) if (-not (Test-Path -LiteralPath $file -PathType Leaf)) { Write-Host 'KO (FAIL) — DATEI NICHT GEFUNDEN' -ForegroundColor Red Write-Host 'Prüfe, ob der Download abgeschlossen ist und die Datei mit ihrem ursprünglichen Namen im Downloadordner liegt.' -ForegroundColor White $global:LASTEXITCODE = 1 return } try { $actual = (Get-FileHash -Algorithm SHA256 -ErrorAction Stop -LiteralPath $file).Hash Write-Host '' Write-Host '========================================' Write-Host 'ERGEBNIS DER CUVEX-PRÜFUNG' -ForegroundColor Cyan if ($actual -eq '62f069f00993ddb9381bae25edf7fbdab913e41cf4f903e4e797cca6e263624a') { Write-Host 'OK — DATEI VERIFIZIERT' -ForegroundColor Green Write-Host 'Die Datei stimmt mit dem für diese Version veröffentlichten SHA-256 überein. Die Integritätsprüfung war erfolgreich.' -ForegroundColor White $global:LASTEXITCODE = 0 return } } catch {} Write-Host 'KO (FAIL) — DIESE DATEI NICHT ÖFFNEN' -ForegroundColor Red Write-Host 'Die Datei stimmt nicht mit dem veröffentlichten Hash überein. Lade sie erneut bei Cuvex herunter und wiederhole die Prüfung. Bei erneutem Fehler: sato@cuvex.io.' -ForegroundColor White $global:LASTEXITCODE = 1 } exit $global:LASTEXITCODE