mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 05:04:38 +03:00
chore(ci): fix jom md5 check
- Currently md5sum failed with unknown md5sum file error - Uses pwsh syntax to check md5 hash Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
@@ -244,11 +244,12 @@ steps:
|
|||||||
}
|
}
|
||||||
cd $(WIN_QT_BINDIR)
|
cd $(WIN_QT_BINDIR)
|
||||||
$jomurl = 'https://download.qt.io/official_releases/jom/' + $env:JOM
|
$jomurl = 'https://download.qt.io/official_releases/jom/' + $env:JOM
|
||||||
$md5sum = $env:MD5 + ' ' + $env:JOM
|
|
||||||
Invoke-WebRequest -Uri $jomurl -OutFile $env:JOM
|
Invoke-WebRequest -Uri $jomurl -OutFile $env:JOM
|
||||||
Set-Content -Encoding utf8 -Path md5sums.txt -Value $md5sum
|
if ((Get-FileHash $env:JOM -Algorithm MD5).Hash -eq $env:MD5) {
|
||||||
md5sum -c md5sums.txt
|
|
||||||
unzip $env:JOM
|
unzip $env:JOM
|
||||||
|
} else {
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
condition: |
|
condition: |
|
||||||
and(eq(variables['Agent.OS'], 'Windows_NT'),
|
and(eq(variables['Agent.OS'], 'Windows_NT'),
|
||||||
eq(variables['SUBCOMMAND'], 'install-qt'))
|
eq(variables['SUBCOMMAND'], 'install-qt'))
|
||||||
|
|||||||
Reference in New Issue
Block a user