mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-05 08:11:20 +00:00
python: Reset ansi sequence to prevent color leak from installer
   Ash258/Scoop-Core#138
This commit is contained in:
parent
8a72081666
commit
f8b2604536
@ -52,6 +52,7 @@
|
|||||||
"(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object { Expand-MsiArchive $_ \"$dir\" }",
|
"(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object { Expand-MsiArchive $_ \"$dir\" }",
|
||||||
"Remove-Item \"$dir\\_tmp\", \"$dir\\setup.exe\" -Force -Recurse",
|
"Remove-Item \"$dir\\_tmp\", \"$dir\\setup.exe\" -Force -Recurse",
|
||||||
"& \"$dir\\python.exe\" -E -s -m ensurepip -U --default-pip | Out-Null",
|
"& \"$dir\\python.exe\" -E -s -m ensurepip -U --default-pip | Out-Null",
|
||||||
|
"Write-Output \"`e[0m\" # Reset ansi to prevent color leak from installer",
|
||||||
"if ($global) {",
|
"if ($global) {",
|
||||||
" $pathext = (env 'PATHEXT' $true) -replace ';.PYW?', ''",
|
" $pathext = (env 'PATHEXT' $true) -replace ';.PYW?', ''",
|
||||||
" env 'PATHEXT' $true \"$pathext;.PY;.PYW\"",
|
" env 'PATHEXT' $true \"$pathext;.PY;.PYW\"",
|
||||||
@ -77,14 +78,14 @@
|
|||||||
"idle3"
|
"idle3"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"persist": [
|
|
||||||
"Scripts",
|
|
||||||
"Lib\\site-packages"
|
|
||||||
],
|
|
||||||
"env_add_path": [
|
"env_add_path": [
|
||||||
"Scripts",
|
"Scripts",
|
||||||
"."
|
"."
|
||||||
],
|
],
|
||||||
|
"persist": [
|
||||||
|
"Scripts",
|
||||||
|
"Lib\\site-packages"
|
||||||
|
],
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://www.python.org/downloads/windows/",
|
"url": "https://www.python.org/downloads/windows/",
|
||||||
"regex": "Latest Python 3 Release - Python ([\\d.]+)"
|
"regex": "Latest Python 3 Release - Python ([\\d.]+)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user