@agenticmail/core 0.5.17 → 0.5.19
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/dist/index.js +26 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6222,25 +6222,25 @@ var DependencyInstaller = class {
|
|
|
6222
6222
|
* then starts Docker Desktop hidden (no GUI window).
|
|
6223
6223
|
*/
|
|
6224
6224
|
async setupExistingDockerApp(appPath) {
|
|
6225
|
-
|
|
6226
|
-
if (existsSync4(installBin)) {
|
|
6227
|
-
this.onProgress("__progress__:30:Setting up CLI tools...");
|
|
6228
|
-
const user = process.env.USER || execSync("whoami", { timeout: 5e3 }).toString().trim();
|
|
6229
|
-
try {
|
|
6230
|
-
execSync(`"${installBin}" --accept-license --user=${user}`, {
|
|
6231
|
-
timeout: 12e4,
|
|
6232
|
-
stdio: "ignore"
|
|
6233
|
-
});
|
|
6234
|
-
} catch {
|
|
6235
|
-
}
|
|
6236
|
-
}
|
|
6237
|
-
let alreadyRunning = false;
|
|
6225
|
+
let wasAlreadyRunning = false;
|
|
6238
6226
|
try {
|
|
6239
6227
|
execFileSync2("docker", ["info"], { timeout: 5e3, stdio: "ignore" });
|
|
6240
|
-
|
|
6228
|
+
wasAlreadyRunning = true;
|
|
6241
6229
|
} catch {
|
|
6242
6230
|
}
|
|
6243
|
-
|
|
6231
|
+
const installBin = join6(appPath, "Contents", "MacOS", "install");
|
|
6232
|
+
if (wasAlreadyRunning) {
|
|
6233
|
+
if (existsSync4(installBin)) {
|
|
6234
|
+
this.onProgress("__progress__:30:Setting up CLI tools...");
|
|
6235
|
+
const user = process.env.USER || execSync("whoami", { timeout: 5e3 }).toString().trim();
|
|
6236
|
+
try {
|
|
6237
|
+
execSync(`"${installBin}" --accept-license --user=${user}`, {
|
|
6238
|
+
timeout: 12e4,
|
|
6239
|
+
stdio: "ignore"
|
|
6240
|
+
});
|
|
6241
|
+
} catch {
|
|
6242
|
+
}
|
|
6243
|
+
}
|
|
6244
6244
|
this.onProgress("__progress__:100:Engine is ready!");
|
|
6245
6245
|
this.hideDockerWindow();
|
|
6246
6246
|
this.configureDockerHeadless();
|
|
@@ -6253,6 +6253,17 @@ var DependencyInstaller = class {
|
|
|
6253
6253
|
} catch {
|
|
6254
6254
|
}
|
|
6255
6255
|
await this.waitForDocker();
|
|
6256
|
+
if (existsSync4(installBin)) {
|
|
6257
|
+
this.onProgress("Setting up CLI tools...");
|
|
6258
|
+
const user = process.env.USER || execSync("whoami", { timeout: 5e3 }).toString().trim();
|
|
6259
|
+
try {
|
|
6260
|
+
execSync(`"${installBin}" --accept-license --user=${user}`, {
|
|
6261
|
+
timeout: 12e4,
|
|
6262
|
+
stdio: "ignore"
|
|
6263
|
+
});
|
|
6264
|
+
} catch {
|
|
6265
|
+
}
|
|
6266
|
+
}
|
|
6256
6267
|
this._firstLaunchMode = false;
|
|
6257
6268
|
this.configureDockerHeadless();
|
|
6258
6269
|
this.hideDockerWindow();
|