# Cuvex: local SHA-256 verification; no network or installation. & { $folder = $PSScriptRoot $file = Join-Path $folder 'Cuvex-Desktop-1.0.0-beta.9.15.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 '0f3fdcc5c4d5aafe77108d0dad1d6c6b557dec7cbb87591dcaf0c451bcf17b8e') { 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