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."