# 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