winpython: Add 'extract_dir' (#100)

This commit is contained in:
Hsiao-nan Cheung 2019-06-19 10:40:07 +08:00 committed by Ross Smith II
parent 78f367db15
commit 521d1e1228

View File

@ -6,21 +6,16 @@
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://downloads.sourceforge.net/project/winpython/WinPython_3.7/3.7.2.0/WinPython64-3.7.2.0Zero.exe", "url": "https://downloads.sourceforge.net/project/winpython/WinPython_3.7/3.7.2.0/WinPython64-3.7.2.0Zero.exe",
"hash": "33060b8180e7ce536256874ddf97e383cae22cc3f3b1de3e1b000d899c140b31" "hash": "33060b8180e7ce536256874ddf97e383cae22cc3f3b1de3e1b000d899c140b31",
"extract_dir": "python-3.7.2.amd64"
}, },
"32bit": { "32bit": {
"url": "https://downloads.sourceforge.net/project/winpython/WinPython_3.7/3.7.2.0/WinPython32-3.7.2.0Zero.exe", "url": "https://downloads.sourceforge.net/project/winpython/WinPython_3.7/3.7.2.0/WinPython32-3.7.2.0Zero.exe",
"hash": "e24c4d4f183f478cba9104ddeac9b44a4908642c7ddab80fe452323e22c7ac75" "hash": "e24c4d4f183f478cba9104ddeac9b44a4908642c7ddab80fe452323e22c7ac75",
"extract_dir": "python-3.7.2"
} }
}, },
"innosetup": true, "innosetup": true,
"installer": {
"script": [
"Get-ChildItem \"$dir\" -Exclude 'python-*' | Remove-Item -Force -Recurse",
"Move-Item \"$dir\\python-*\\*\" \"$dir\" -Force",
"Remove-Item \"$dir\\python-*\""
]
},
"bin": [ "bin": [
"python.exe", "python.exe",
"pythonw.exe", "pythonw.exe",
@ -38,10 +33,12 @@
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://downloads.sourceforge.net/project/winpython/WinPython_$majorVersion.$minorVersion/$version/WinPython64-$versionZero.exe" "url": "https://downloads.sourceforge.net/project/winpython/WinPython_$majorVersion.$minorVersion/$version/WinPython64-$versionZero.exe",
"extract_dir": "python-$majorVersion.$minorVersion.$patchVersion.amd64"
}, },
"32bit": { "32bit": {
"url": "https://downloads.sourceforge.net/project/winpython/WinPython_$majorVersion.$minorVersion/$version/WinPython32-$versionZero.exe" "url": "https://downloads.sourceforge.net/project/winpython/WinPython_$majorVersion.$minorVersion/$version/WinPython32-$versionZero.exe",
"extract_dir": "python-$majorVersion.$minorVersion.$patchVersion"
} }
}, },
"hash": { "hash": {