From cf44a811a00fbcb53a2905eb1307b9d7a5e8aaab Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Thu, 9 Jun 2022 14:10:53 -0400 Subject: [PATCH] Fix paths and powershell script extension --- bootstrap.bat | 16 ++++++++-------- bootstrap.ps2 => bootstrap.ps1 | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) rename bootstrap.ps2 => bootstrap.ps1 (95%) diff --git a/bootstrap.bat b/bootstrap.bat index 11e5d85..66094e2 100644 --- a/bootstrap.bat +++ b/bootstrap.bat @@ -2,21 +2,21 @@ for /f %%i in ('cd') do set _RunPath=%%i -pushd /SWTools +pushd C:\SWTools -IF EXIST ./python/python.exe ( +IF EXIST .\python\python.exe ( echo "Python already installed." ) ELSE ( - IF EXIST ./python.zip ( + IF EXIST .\python.zip ( ) ELSE ( - curl "https://www.python.org/ftp/python/3.10.5/python-3.10.5-embed-amd64.zip" --output ./python.zip + curl "https://www.python.org/ftp/python/3.10.5/python-3.10.5-embed-amd64.zip" --output .\python.zip ) - IF EXIST ./python ( - del ./python + IF EXIST .\python ( + del .\python ) - tar -xf ./python.zip + tar -xf .\python.zip ) -./python/python.exe main.py _RunPath +.\python\python.exe main.py _RunPath diff --git a/bootstrap.ps2 b/bootstrap.ps1 similarity index 95% rename from bootstrap.ps2 rename to bootstrap.ps1 index 166011a..18c1642 100644 --- a/bootstrap.ps2 +++ b/bootstrap.ps1 @@ -1,6 +1,6 @@ $run_path = Get-Location -Push-Location /SWTools +Push-Location C:/SWTools if (Get-Command "./python/python.exe" -ErrorAction SilentlyContinue) { echo "Python already installed."