# 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 'VÉRIFICATION DE VOTRE TÉLÉCHARGEMENT CUVEX…' -ForegroundColor Cyan Write-Host ('Fichier téléchargé: ' + $file) if (-not (Test-Path -LiteralPath $file -PathType Leaf)) { Write-Host 'KO (FAIL) — FICHIER INTROUVABLE' -ForegroundColor Red Write-Host 'Vérifiez que le téléchargement est terminé et que le fichier conserve son nom d''origine dans Téléchargements.' -ForegroundColor White $global:LASTEXITCODE = 1 return } try { $actual = (Get-FileHash -Algorithm SHA256 -ErrorAction Stop -LiteralPath $file).Hash Write-Host '' Write-Host '========================================' Write-Host 'RÉSULTAT DE LA VÉRIFICATION CUVEX' -ForegroundColor Cyan if ($actual -eq 'b78c1451735c5db6dd8cc7776db225f29cc1187b70aefeddcbe6968dce070d9c') { Write-Host 'OK — FICHIER VÉRIFIÉ' -ForegroundColor Green Write-Host 'Le fichier correspond au SHA-256 publié pour cette version. La vérification d''intégrité a réussi.' -ForegroundColor White $global:LASTEXITCODE = 0 return } } catch {} Write-Host 'KO (FAIL) — N''OUVREZ PAS CE FICHIER' -ForegroundColor Red Write-Host 'Le fichier ne correspond pas à l''empreinte publiée. Téléchargez-le à nouveau depuis Cuvex et recommencez. En cas de nouvel échec, contactez sato@cuvex.io.' -ForegroundColor White $global:LASTEXITCODE = 1 } exit $global:LASTEXITCODE