Fix paths and powershell script extension
This commit is contained in:
parent
6369fddd1a
commit
cf44a811a0
|
@ -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
|
||||
|
|
|
@ -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."
|
Loading…
Reference in New Issue