Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/windows cli installer #152

Merged
merged 2 commits into from
Jun 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions install/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ try {
New-Item -ItemType directory -Path $PIXI_DIR
}

$ZIP_FILE = $TEMP_FILE + ".zip"
Rename-Item -Path $TEMP_FILE -NewName $ZIP_FILE

# Extract pixi from the downloaded zip file
Expand-Archive -Path $TEMP_FILE -DestinationPath $PIXI_DIR -Force
Expand-Archive -Path $ZIP_FILE -DestinationPath $PIXI_DIR -Force

# Add pixi to PATH if the folder is not already in the PATH variable
$PATH = [Environment]::GetEnvironmentVariable("Path", "User")
Expand All @@ -45,5 +48,5 @@ try {
Write-Host "Error: '$DOWNLOAD_URL' is not available or failed to download"
exit 1
} finally {
Remove-Item -Path $TEMP_FILE
Remove-Item -Path $ZIP_FILE
}