@agenticmail/core 0.5.19 → 0.5.21
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 +30 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6330,6 +6330,19 @@ var DependencyInstaller = class {
|
|
|
6330
6330
|
);
|
|
6331
6331
|
if (brewResult.exitCode === 0) {
|
|
6332
6332
|
this.onProgress("__progress__:45:Mail server engine installed!");
|
|
6333
|
+
try {
|
|
6334
|
+
execSync(`osascript -e 'quit app "Docker Desktop"' 2>/dev/null`, { timeout: 5e3, stdio: "ignore" });
|
|
6335
|
+
} catch {
|
|
6336
|
+
}
|
|
6337
|
+
try {
|
|
6338
|
+
execSync(`osascript -e 'quit app "Docker"' 2>/dev/null`, { timeout: 5e3, stdio: "ignore" });
|
|
6339
|
+
} catch {
|
|
6340
|
+
}
|
|
6341
|
+
try {
|
|
6342
|
+
execSync("pkill -f Docker.app 2>/dev/null", { timeout: 5e3, stdio: "ignore" });
|
|
6343
|
+
} catch {
|
|
6344
|
+
}
|
|
6345
|
+
await new Promise((r) => setTimeout(r, 3e3));
|
|
6333
6346
|
const appPath = this.findDockerApp();
|
|
6334
6347
|
if (appPath) {
|
|
6335
6348
|
await this.setupExistingDockerApp(appPath);
|
|
@@ -6364,21 +6377,12 @@ var DependencyInstaller = class {
|
|
|
6364
6377
|
} catch {
|
|
6365
6378
|
throw new Error("Failed to mount Docker DMG. The download may be corrupted \u2014 try again.");
|
|
6366
6379
|
}
|
|
6367
|
-
this.onProgress("__progress__:55:
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
});
|
|
6374
|
-
} catch {
|
|
6375
|
-
if (!existsSync4("/Applications/Docker.app")) {
|
|
6376
|
-
this.onProgress("__progress__:60:Trying alternative install method...");
|
|
6377
|
-
try {
|
|
6378
|
-
execSync('cp -R "/Volumes/Docker/Docker.app" /Applications/', { timeout: 6e4, stdio: "ignore" });
|
|
6379
|
-
} catch {
|
|
6380
|
-
throw new Error("Failed to install. You may need to run this with admin privileges.");
|
|
6381
|
-
}
|
|
6380
|
+
this.onProgress("__progress__:55:Installing...");
|
|
6381
|
+
if (!existsSync4("/Applications/Docker.app")) {
|
|
6382
|
+
try {
|
|
6383
|
+
execSync('cp -R "/Volumes/Docker/Docker.app" /Applications/', { timeout: 6e4, stdio: "ignore" });
|
|
6384
|
+
} catch {
|
|
6385
|
+
throw new Error("Failed to install. You may need to run this with admin privileges.");
|
|
6382
6386
|
}
|
|
6383
6387
|
}
|
|
6384
6388
|
try {
|
|
@@ -6397,6 +6401,17 @@ var DependencyInstaller = class {
|
|
|
6397
6401
|
}
|
|
6398
6402
|
await this.waitForDocker();
|
|
6399
6403
|
this._firstLaunchMode = false;
|
|
6404
|
+
const installBin = "/Applications/Docker.app/Contents/MacOS/install";
|
|
6405
|
+
if (existsSync4(installBin)) {
|
|
6406
|
+
const user = process.env.USER || execSync("whoami", { timeout: 5e3 }).toString().trim();
|
|
6407
|
+
try {
|
|
6408
|
+
execSync(`"${installBin}" --accept-license --user=${user}`, {
|
|
6409
|
+
timeout: 12e4,
|
|
6410
|
+
stdio: "ignore"
|
|
6411
|
+
});
|
|
6412
|
+
} catch {
|
|
6413
|
+
}
|
|
6414
|
+
}
|
|
6400
6415
|
this.configureDockerHeadless();
|
|
6401
6416
|
this.hideDockerWindow();
|
|
6402
6417
|
}
|