# 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…' -ForegroundColor Cyan Write-Host ('الملف المنزّل: ' + $file) if (-not (Test-Path -LiteralPath $file -PathType Leaf)) { Write-Host 'KO (FAIL) — لم يتم العثور على الملف' -ForegroundColor Red Write-Host 'تحقّق من اكتمال التنزيل ومن وجود الملف في التنزيلات باسمه الأصلي.' -ForegroundColor White $global:LASTEXITCODE = 1 return } try { $actual = (Get-FileHash -Algorithm SHA256 -ErrorAction Stop -LiteralPath $file).Hash Write-Host '' Write-Host '========================================' Write-Host 'نتيجة فحص CUVEX' -ForegroundColor Cyan if ($actual -eq '62f069f00993ddb9381bae25edf7fbdab913e41cf4f903e4e797cca6e263624a') { Write-Host 'OK — تم التحقّق من الملف' -ForegroundColor Green Write-Host 'يطابق الملف بصمة SHA-256 التي نشرناها لهذا الإصدار. اكتمل فحص سلامة الملف بنجاح.' -ForegroundColor White $global:LASTEXITCODE = 0 return } } catch {} Write-Host 'KO (FAIL) — لا تفتح هذا الملف' -ForegroundColor Red Write-Host 'لا يطابق الملف البصمة المنشورة. نزّله مجددًا من Cuvex وأعد الفحص. إذا تكرر الفشل، تواصل مع sato@cuvex.io.' -ForegroundColor White $global:LASTEXITCODE = 1 } exit $global:LASTEXITCODE