Skip to content

Commit

Permalink
Script Instalador Plugins Python
Browse files Browse the repository at this point in the history
  • Loading branch information
weskerty authored Oct 27, 2024
1 parent b9b9e17 commit 96bfa55
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pipdeps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { exec } from 'child_process';

function runCommand(command, description) {
return new Promise((resolve, reject) => {
console.log(`Ejecutando: ${description}...`);

exec(command, (error, stdout, stderr) => {
if (error) {
console.error(`Error al ejecutar ${description}:`, error);
reject(error);
return;
}
if (stderr) {
console.error(`Stderr al ejecutar ${description}:`, stderr);
}
console.log(`Resultado de ${description}:`, stdout);
resolve(stdout);
});
});
}

// Agregar mas lineas para mas paquetes
async function installPythonDependencies() {
try {
await runCommand('pip install -U --pre "yt-dlp[default]"', 'Instalando YT-DLP');
} catch (error) {
console.error('Error Instalando Modulos Opcionales, Algunos Plugins No Funcionaran.', error);
}
}

installPythonDependencies();

0 comments on commit 96bfa55

Please sign in to comment.