From 2dc872ba08a9acf6daa08733ce59ed5a4f27cfa8 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Wed, 28 Jun 2023 14:03:46 +0200 Subject: [PATCH 1/2] fix: change filename from .tmp to .zip in ps1 install script. --- install/install.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install/install.ps1 b/install/install.ps1 index b188cd270..c623a419c 100644 --- a/install/install.ps1 +++ b/install/install.ps1 @@ -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") From 088f34ee8e56b08df3bae4821f16c4ee68cc87e8 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Wed, 28 Jun 2023 14:08:39 +0200 Subject: [PATCH 2/2] fix: remove file name --- install/install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/install.ps1 b/install/install.ps1 index c623a419c..540ce4d1b 100644 --- a/install/install.ps1 +++ b/install/install.ps1 @@ -48,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 }