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