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" "PowerShell Core"
] ]
], ],
"checkver": { "checkver": "github",
"github": "https://github.com/PowerShell/PowerShell"
},
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
@ -30,6 +28,10 @@
"32bit": { "32bit": {
"url": "https://github.com/PowerShell/PowerShell/releases/download/v$version/PowerShell-$version-win-x86.zip" "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})"
} }
} }
} }