# 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 İNDİRMENİZ KONTROL EDİLİYOR…' -ForegroundColor Cyan Write-Host ('İndirilen dosya: ' + $file) if (-not (Test-Path -LiteralPath $file -PathType Leaf)) { Write-Host 'KO (FAIL) — DOSYA BULUNAMADI' -ForegroundColor Red Write-Host 'İndirmenin tamamlandığını ve dosyanın İndirilenler''de özgün adıyla bulunduğunu kontrol edin.' -ForegroundColor White $global:LASTEXITCODE = 1 return } try { $actual = (Get-FileHash -Algorithm SHA256 -ErrorAction Stop -LiteralPath $file).Hash Write-Host '' Write-Host '========================================' Write-Host 'CUVEX DOĞRULAMA SONUCU' -ForegroundColor Cyan if ($actual -eq '0f3fdcc5c4d5aafe77108d0dad1d6c6b557dec7cbb87591dcaf0c451bcf17b8e') { Write-Host 'OK — DOSYA DOĞRULANDI' -ForegroundColor Green Write-Host 'Dosya, bu sürüm için yayımladığımız SHA-256 ile eşleşiyor. Bütünlük kontrolü başarıyla tamamlandı.' -ForegroundColor White $global:LASTEXITCODE = 0 return } } catch {} Write-Host 'KO (FAIL) — BU DOSYAYI AÇMAYIN' -ForegroundColor Red Write-Host 'Dosya yayımlanan hash ile eşleşmiyor. Cuvex''ten yeniden indirip kontrolü tekrarlayın. Yine başarısız olursa sato@cuvex.io ile iletişime geçin.' -ForegroundColor White $global:LASTEXITCODE = 1 } exit $global:LASTEXITCODE