Skip to content

Commit

Permalink
Update main.ps1 to enable UV PIP install fix on Campus network
Browse files Browse the repository at this point in the history
Downloads and uses UV config file from repo. https://docs.astral.sh/uv/configuration/files/#configuration-files
  • Loading branch information
Zoobdude authored Nov 15, 2024
1 parent 2d02484 commit 28b70a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ if ($configFile."Install-gh-desktop") {
# Install UV (Python PIP replacement https://github.com/astral-sh/uv)
if ($configFile."Install-UV") {
winget install --id=astral-sh.uv -e --accept-source-agreements --source winget
if ($configFile."Campus-UV-PIP-Fix") {
New-Item -ItemType Directory -Force -Path "$Env:APPDATA\uv"
Invoke-WebRequest "https://github.com/likes-gay/win-config/raw/refs/heads/main/uv.toml" -OutFile "$Env:APPDATA\uv\uv.toml"

}
}

# Install MS-Terminal
Expand Down

0 comments on commit 28b70a5

Please sign in to comment.