@deinossrl/dgp-agent 1.4.54 → 1.4.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/index.mjs +15 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/index.mjs
CHANGED
|
@@ -1519,12 +1519,19 @@ async function findOrInstallPgDump() {
|
|
|
1519
1519
|
const extractedPgDump = join(BIN_DIR, 'pgsql', 'bin', 'pg_dump.exe');
|
|
1520
1520
|
|
|
1521
1521
|
if (existsSync(extractedPgDump)) {
|
|
1522
|
-
// Copiar pg_dump.exe y TODAS las DLLs al BIN_DIR raíz
|
|
1522
|
+
// Copiar pg_dump.exe, pg_restore.exe y TODAS las DLLs al BIN_DIR raíz
|
|
1523
1523
|
const binSrcDir = join(BIN_DIR, 'pgsql', 'bin');
|
|
1524
1524
|
|
|
1525
1525
|
// Copiar pg_dump.exe
|
|
1526
1526
|
execSync(`copy "${extractedPgDump}" "${localPgDump}"`, { shell: 'cmd.exe' });
|
|
1527
1527
|
|
|
1528
|
+
// Copiar pg_restore.exe
|
|
1529
|
+
const extractedPgRestore = join(BIN_DIR, 'pgsql', 'bin', 'pg_restore.exe');
|
|
1530
|
+
const localPgRestore = join(BIN_DIR, 'pg_restore.exe');
|
|
1531
|
+
if (existsSync(extractedPgRestore)) {
|
|
1532
|
+
execSync(`copy "${extractedPgRestore}" "${localPgRestore}"`, { shell: 'cmd.exe' });
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1528
1535
|
// Copiar TODAS las DLLs (no solo algunas específicas)
|
|
1529
1536
|
execSync(`copy "${binSrcDir}\\*.dll" "${BIN_DIR}\\"`, { shell: 'cmd.exe' });
|
|
1530
1537
|
|
|
@@ -1568,6 +1575,13 @@ async function findOrInstallPgDump() {
|
|
|
1568
1575
|
// Copiar pg_dump.exe
|
|
1569
1576
|
execSync(`copy "${extractedPgDump}" "${localPgDump}"`, { shell: 'cmd.exe' });
|
|
1570
1577
|
|
|
1578
|
+
// Copiar pg_restore.exe
|
|
1579
|
+
const extractedPgRestore = join(BIN_DIR, 'pgsql', 'bin', 'pg_restore.exe');
|
|
1580
|
+
const localPgRestore = join(BIN_DIR, 'pg_restore.exe');
|
|
1581
|
+
if (existsSync(extractedPgRestore)) {
|
|
1582
|
+
execSync(`copy "${extractedPgRestore}" "${localPgRestore}"`, { shell: 'cmd.exe' });
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1571
1585
|
// Copiar TODAS las DLLs
|
|
1572
1586
|
execSync(`copy "${binSrcDir}\\*.dll" "${BIN_DIR}\\"`, { shell: 'cmd.exe' });
|
|
1573
1587
|
|