- 파일을 압축 해제하거나 이름을 바꾸지 말고 다운로드 폴더에 두세요. 다운로드가 끝날 때까지 기다리세요.
- PowerShell을 여세요. 시작에서 PowerShell을 검색해 실행하세요. 관리자 권한은 필요하지 않습니다.
- 전체 블록을 복사해 터미널에 붙여넣고 Enter를 누르세요. 해시만 계산하고 비교하며 App을 설치하거나 실행하지 않습니다.
- 붙여넣은 블록 아래의 결과를 확인하세요. 몇 초 걸릴 수 있습니다.
블록은 붙여넣을 명령입니다. OK 또는 KO 결과는 실행 후 나타납니다.
전체 블록을 붙여넣으세요
& {
$folder = Join-Path ([Environment]::GetFolderPath('UserProfile')) 'Downloads'
try {
$known = (Get-ItemProperty -LiteralPath 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders' -ErrorAction Stop).'{374DE290-123F-4565-9164-39C4925E467B}'
if ($known) { $folder = [Environment]::ExpandEnvironmentVariables($known) }
} catch {}
$file = Join-Path $folder 'Cuvex-Desktop-1.0.0-beta.9.13-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 '63887f4d64c04357e47e7dc5eddad0cd490ff4b8b29e169764e91493dbedd90c') {
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
}
실행 후 예상 결과
OK — 파일 확인 완료이 버전에 대해 공개한 SHA-256과 파일이 일치합니다. 무결성 확인이 완료되었습니다.
KO (FAIL) — 이 파일을 열지 마세요공개된 해시와 일치하지 않습니다. Cuvex에서 다시 다운로드하고 확인하세요. 다시 실패하면 sato@cuvex.io로 문의하세요.
