Fix paths and powershell script extension

This commit is contained in:
Michael Pfaff 2022-06-09 14:10:53 -04:00
parent 6369fddd1a
commit cf44a811a0
Signed by: michael
GPG Key ID: CF402C4A012AA9D4
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

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