Use full Python installer instead of embeddable
This commit is contained in:
+15
-15
@@ -2,28 +2,28 @@
|
|||||||
chcp 65001 >nul
|
chcp 65001 >nul
|
||||||
title RIPS Manager - Auto Update
|
title RIPS Manager - Auto Update
|
||||||
|
|
||||||
:: ---- 1. Asegurar Python portable ----
|
:: ---- 1. Verificar Python ----
|
||||||
if not exist python\python.exe (
|
where python >nul 2>&1
|
||||||
echo Descargando Python portable...
|
if %errorlevel% neq 0 (
|
||||||
powershell -Command "& {Invoke-WebRequest -Uri 'https://www.python.org/ftp/python/3.12.9/python-3.12.9-embed-amd64.zip' -OutFile 'python.zip'}"
|
echo Descargando Python 3.12...
|
||||||
powershell -Command "& {Expand-Archive -Path 'python.zip' -DestinationPath 'python' -Force}"
|
powershell -Command "& {Invoke-WebRequest -Uri 'https://www.python.org/ftp/python/3.12.9/python-3.12.9-amd64.exe' -OutFile '%TEMP%\python-installer.exe'}"
|
||||||
del python.zip
|
echo Instalando Python (esperar 1-2 min)...
|
||||||
set PTH_FILE=%~dp0python\python312._pth
|
start /wait "" "%TEMP%\python-installer.exe" /quiet InstallAllUsers=0 PrependPath=1 Include_test=0
|
||||||
powershell -Command "& {(Get-Content '%PTH_FILE%') -replace '#import site','import site' | Set-Content '%PTH_FILE%'}"
|
echo Python instalado. Cerra y abri PowerShell de nuevo.
|
||||||
python\python.exe -c "import urllib.request; exec(urllib.request.urlopen('https://bootstrap.pypa.io/get-pip.py').read())"
|
pause
|
||||||
|
exit /b
|
||||||
)
|
)
|
||||||
|
|
||||||
:: ---- 2. Pull inicial ----
|
:: ---- 2. Actualizar e instalar deps ----
|
||||||
echo [%date% %time%] Pull inicial...
|
echo Pull inicial...
|
||||||
git pull
|
git pull
|
||||||
python\python.exe -m pip install -q -r requirements.txt 2>nul
|
python -m pip install -q -r requirements.txt
|
||||||
|
|
||||||
:: ---- 3. Arrancar con auto-pull cada 60s ----
|
:: ---- 3. Arrancar ----
|
||||||
echo.
|
echo.
|
||||||
echo ==========================================
|
echo ==========================================
|
||||||
echo Servidor: http://localhost:8080
|
echo Servidor: http://localhost:8080
|
||||||
echo Auto-update cada 60 segundos
|
echo Auto-update cada 60 segundos
|
||||||
echo Cerra esta ventana para detener
|
echo Cerra esta ventana para detener
|
||||||
echo ==========================================
|
echo ==========================================
|
||||||
|
python auto_update.py
|
||||||
python\python.exe auto_update.py
|
|
||||||
|
|||||||
Reference in New Issue
Block a user