Skip to content

Commit e85a89f

Browse files
committed
Windows での MD5 チェックサムの解析方法を修正する
1 parent 0363a71 commit e85a89f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/download-openh264/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ runs:
200200
Write-Host "Downloading MD5 checksum..."
201201
Invoke-WebRequest -Uri $MD5_URL -OutFile "md5.txt"
202202
$md5Content = Get-Content "md5.txt" -Raw
203-
$expectedMd5 = ($md5Content -split '=')[1].Trim().ToLower()
203+
# MD5ファイル形式: "md5 *filename" から md5 部分を抽出
204+
$expectedMd5 = ($md5Content.Trim() -split '\s+')[0].ToLower()
204205
$actualMd5 = (Get-FileHash -Path $dllName -Algorithm MD5).Hash.ToLower()
205206
if ($expectedMd5 -ne $actualMd5) {
206207
Write-Host "Error: MD5 checksum mismatch!"

0 commit comments

Comments
 (0)