mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-05 00:01:20 +00:00
Python: Use install script instead of original installer (#6)
This commit is contained in:
parent
bf5237209e
commit
b8fa7fdc49
@ -1,34 +1,40 @@
|
|||||||
{
|
{
|
||||||
"homepage": "https://www.python.org/",
|
"homepage": "https://www.python.org/",
|
||||||
"license": "https://docs.python.org/3/license.html",
|
"description": "A programming language that lets you work quickly and integrate systems more effectively.",
|
||||||
|
"license": "Python-2.0",
|
||||||
"version": "3.7.3",
|
"version": "3.7.3",
|
||||||
|
"depends": "dark",
|
||||||
"architecture": {
|
"architecture": {
|
||||||
"64bit": {
|
"64bit": {
|
||||||
"url": "https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe#/py3.exe",
|
"url": "https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe",
|
||||||
"hash": "md5:a2b79563476e9aa47f11899a53349383"
|
"hash": "md5:a2b79563476e9aa47f11899a53349383"
|
||||||
},
|
},
|
||||||
"32bit": {
|
"32bit": {
|
||||||
"url": "https://www.python.org/ftp/python/3.7.3/python-3.7.3.exe#/py3.exe",
|
"url": "https://www.python.org/ftp/python/3.7.3/python-3.7.3.exe",
|
||||||
"hash": "md5:ebf1644cdc1eeeebacc92afa949cfc01"
|
"hash": "md5:ebf1644cdc1eeeebacc92afa949cfc01"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"installer": {
|
"installer": {
|
||||||
"args": [
|
"script": [
|
||||||
"/quiet",
|
"&(file_path dark dark.exe) -nologo -x \"$dir\\_tmp\" \"$dir\\$fname\" | Out-Null",
|
||||||
"InstallAllUsers=$(@{$true=1;$false=0}[$global])",
|
"@('launcher.msi', 'path.msi', 'pip.msi') | ForEach-Object {",
|
||||||
"TargetDir=\"$dir\"",
|
" Remove-Item \"$dir\\_tmp\\AttachedContainer\\$_\"",
|
||||||
"AssociateFiles=0",
|
"}",
|
||||||
"Shortcuts=0",
|
"(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object { Expand-MSIArchive $_ \"$dir\" }",
|
||||||
"InstallLauncherAllUsers=$(@{$true=1;$false=0}[$global])"
|
"Remove-Item \"$dir\\_tmp\", \"$dir\\$fname\" -Force -Recurse",
|
||||||
],
|
"& \"$dir\\python.exe\" -E -s -m ensurepip -U --default-pip | Out-Null",
|
||||||
"keep": true
|
"if ($global) {",
|
||||||
|
" $pathext = (env 'PATHEXT' $true) -replace ';.PYW?', ''",
|
||||||
|
" env 'PATHEXT' $true \"$pathext;.PY;.PYW\"",
|
||||||
|
"}"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"uninstaller": {
|
"uninstaller": {
|
||||||
"file": "py3.exe",
|
"script": [
|
||||||
"args": [
|
"if ($global) {",
|
||||||
"/uninstall",
|
" $pathext = (env 'PATHEXT' $true) -replace ';.PYW?', ''",
|
||||||
"/quiet",
|
" env 'PATHEXT' $true \"$pathext\"",
|
||||||
"InstallAllUsers=0"
|
"}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"bin": [
|
"bin": [
|
||||||
@ -44,7 +50,7 @@
|
|||||||
"idle3"
|
"idle3"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"env_add_path": "scripts",
|
"env_add_path": "Scripts",
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://www.python.org/downloads/windows/",
|
"url": "https://www.python.org/downloads/windows/",
|
||||||
"re": "Latest Python 3 Release - Python ([\\d\\.]+)"
|
"re": "Latest Python 3 Release - Python ([\\d\\.]+)"
|
||||||
@ -52,15 +58,15 @@
|
|||||||
"autoupdate": {
|
"autoupdate": {
|
||||||
"architecture": {
|
"architecture": {
|
||||||
"64bit": {
|
"64bit": {
|
||||||
"url": "https://www.python.org/ftp/python/$version/python-$version-amd64.exe#/py3.exe"
|
"url": "https://www.python.org/ftp/python/$version/python-$version-amd64.exe"
|
||||||
},
|
},
|
||||||
"32bit": {
|
"32bit": {
|
||||||
"url": "https://www.python.org/ftp/python/$version/python-$version.exe#/py3.exe"
|
"url": "https://www.python.org/ftp/python/$version/python-$version.exe"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hash": {
|
"hash": {
|
||||||
"url": "https://www.python.org/downloads/release/python-$cleanVersion/",
|
"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})"
|
"find": "$basename[\\S\\s]+?$md5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user