04-oct: instalar_dependencias.ps1 + omniroute-autostart.ts al repo + comparativa equipos
This commit is contained in:
28
scripts/instalar_dependencias.ps1
Normal file
28
scripts/instalar_dependencias.ps1
Normal file
@@ -0,0 +1,28 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Instala/actualiza las dependencias Python comunes (union portatil + sobremesa).
|
||||
|
||||
.DESCRIPTION
|
||||
Deja cualquier equipo con el mismo juego de paquetes Python que usan los
|
||||
watchers, la biblioteca, el monitor, tapo/netatmo, etc. Idempotente.
|
||||
|
||||
Uso: powershell -ExecutionPolicy Bypass -File scripts\instalar_dependencias.ps1
|
||||
#>
|
||||
$ErrorActionPreference = "Continue"
|
||||
|
||||
$pkgs = @(
|
||||
"pycryptodome", "PyP100", "caldav", "python-dotenv", "edge-tts", "feedparser",
|
||||
"flask", "ftfy", "google-auth-oauthlib", "google-api-python-client", "openpyxl",
|
||||
"psutil", "qrcode", "requests", "requests-oauthlib", "google-auth",
|
||||
"google-auth-httplib2", "google-api-core", "telethon", "todoist-api-python",
|
||||
"urllib3", "wakeonlan", "watchdog", "win10toast", "pywin32", "pillow", "setuptools<82"
|
||||
)
|
||||
|
||||
Write-Host "== Instalando dependencias Python (union) ==" -ForegroundColor Cyan
|
||||
Write-Host ("Version: " + (python --version 2>&1)) -ForegroundColor DarkGray
|
||||
|
||||
python -m pip install --upgrade --disable-pip-version-check @pkgs
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "Listo. Verifica con: python -m pip freeze" -ForegroundColor Green
|
||||
Write-Host "Si algun paquete avisa de incompatibilidad con tu version de Python, ignorarlo." -ForegroundColor DarkGray
|
||||
@@ -36,6 +36,8 @@ $TaskMonitor = 'Monitor Estado'
|
||||
$WatchdogMonitor = Join-Path $RepoRoot 'scripts\monitor_estado_watchdog.ps1'
|
||||
$PluginSrcMon = Join-Path $RepoRoot 'opencode\monitor-estado-bootstrap.ts'
|
||||
$PluginDstMon = Join-Path $PluginDir 'monitor-estado-bootstrap.ts'
|
||||
$PluginSrcAuto = Join-Path $RepoRoot 'opencode\omniroute-autostart.ts'
|
||||
$PluginDstAuto = Join-Path $PluginDir 'omniroute-autostart.ts'
|
||||
|
||||
Write-Host '== Instalando infraestructura global (OmniRoute + OpenCode) ==' -ForegroundColor Cyan
|
||||
|
||||
@@ -47,6 +49,11 @@ Write-Host " - Plugin global instalado en $PluginDst" -ForegroundColor Green
|
||||
Copy-Item -LiteralPath $PluginSrcMon -Destination $PluginDstMon -Force
|
||||
Write-Host " - Plugin global instalado en $PluginDstMon" -ForegroundColor Green
|
||||
|
||||
if (Test-Path $PluginSrcAuto) {
|
||||
Copy-Item -LiteralPath $PluginSrcAuto -Destination $PluginDstAuto -Force
|
||||
Write-Host " - Plugin global instalado en $PluginDstAuto" -ForegroundColor Green
|
||||
}
|
||||
|
||||
# 2) Tarea programada ------------------------------------------------------
|
||||
if (-not (Test-Path $Watchdog)) { throw "No se encuentra el vigilante: $Watchdog" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user