Python3: Add hash to autoupdate (#2553)

This commit is contained in:
Jakub Čábera 2018-09-02 12:26:00 +02:00 committed by Richard Kuhnt
parent 4c5cf7609f
commit c50c1b055a

View File

@ -1,18 +1,17 @@
{
"homepage": "https://www.python.org/",
"license": "Python-2.0",
"license": "https://docs.python.org/3/license.html",
"version": "3.7.0",
"architecture": {
"64bit": {
"url": "https://www.python.org/ftp/python/3.7.0/python-3.7.0-amd64.exe#/py3.exe",
"hash": "9d6afa39538aade3a2bacb099ef1c9f78e8d4afaefff99057b902118845c5dda"
"hash": "md5:531c3fc821ce0a4107b6d2c6a129be3e"
},
"32bit": {
"url": "https://www.python.org/ftp/python/3.7.0/python-3.7.0.exe#/py3.exe",
"hash": "559e56d293e05ff6159c3676da2b5a93081efad7a8acc74c12bb757e2b93daba"
"hash": "md5:ebb6444c284c1447e902e87381afeff0"
}
},
"pre_install": "copy-item $dir\\py3.exe $dir\\uninstall.exe",
"installer": {
"args": [
"/quiet",
@ -21,10 +20,11 @@
"AssociateFiles=0",
"Shortcuts=0",
"InstallLauncherAllUsers=$(@{$true=1;$false=0}[$global])"
]
],
"keep": true
},
"uninstaller": {
"file": "uninstall.exe",
"file": "py3.exe",
"args": [
"/uninstall",
"/quiet",
@ -49,7 +49,7 @@
],
"checkver": {
"url": "https://www.python.org/downloads/windows/",
"re": "Latest Python 3 Release - Python ([\\d.]+)"
"re": "Latest Python 3 Release - Python ([\\d\\.]+)"
},
"autoupdate": {
"architecture": {
@ -59,6 +59,10 @@
"32bit": {
"url": "https://www.python.org/ftp/python/$version/python-$version.exe#/py3.exe"
}
},
"hash": {
"url": "https://www.python.org/downloads/release/python-$cleanVersion/",
"find": "<td><a href=\".*$basename\".*</a></td>\\s+<td>Windows</td>\\s+<td>.*</td>\\s+<td>([A-Fa-f\\d]{32})"
}
}
}