pwsh: Add hash to autoupdate (#2578)

This commit is contained in:
Jakub Čábera 2018-09-10 19:50:33 +02:00 committed by Richard Kuhnt
parent 1700c1145b
commit 8bcdee721e

View File

@ -19,9 +19,7 @@
"PowerShell Core"
]
],
"checkver": {
"github": "https://github.com/PowerShell/PowerShell"
},
"checkver": "github",
"autoupdate": {
"architecture": {
"64bit": {
@ -30,6 +28,10 @@
"32bit": {
"url": "https://github.com/PowerShell/PowerShell/releases/download/v$version/PowerShell-$version-win-x86.zip"
}
},
"hash": {
"url": "https://github.com/PowerShell/PowerShell/releases/tag/v$version/",
"find": "$basename\\s*<ul>\\s*<li>([A-Fa-f\\d]{64})"
}
}
}