# 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-arm64.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 'b78c1451735c5db6dd8cc7776db225f29cc1187b70aefeddcbe6968dce070d9c') { 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