@agenticmail/core 0.5.19 → 0.5.20
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 +17 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6364,21 +6364,12 @@ var DependencyInstaller = class {
|
|
|
6364
6364
|
} catch {
|
|
6365
6365
|
throw new Error("Failed to mount Docker DMG. The download may be corrupted \u2014 try again.");
|
|
6366
6366
|
}
|
|
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
|
-
}
|
|
6367
|
+
this.onProgress("__progress__:55:Installing...");
|
|
6368
|
+
if (!existsSync4("/Applications/Docker.app")) {
|
|
6369
|
+
try {
|
|
6370
|
+
execSync('cp -R "/Volumes/Docker/Docker.app" /Applications/', { timeout: 6e4, stdio: "ignore" });
|
|
6371
|
+
} catch {
|
|
6372
|
+
throw new Error("Failed to install. You may need to run this with admin privileges.");
|
|
6382
6373
|
}
|
|
6383
6374
|
}
|
|
6384
6375
|
try {
|
|
@@ -6397,6 +6388,17 @@ var DependencyInstaller = class {
|
|
|
6397
6388
|
}
|
|
6398
6389
|
await this.waitForDocker();
|
|
6399
6390
|
this._firstLaunchMode = false;
|
|
6391
|
+
const installBin = "/Applications/Docker.app/Contents/MacOS/install";
|
|
6392
|
+
if (existsSync4(installBin)) {
|
|
6393
|
+
const user = process.env.USER || execSync("whoami", { timeout: 5e3 }).toString().trim();
|
|
6394
|
+
try {
|
|
6395
|
+
execSync(`"${installBin}" --accept-license --user=${user}`, {
|
|
6396
|
+
timeout: 12e4,
|
|
6397
|
+
stdio: "ignore"
|
|
6398
|
+
});
|
|
6399
|
+
} catch {
|
|
6400
|
+
}
|
|
6401
|
+
}
|
|
6400
6402
|
this.configureDockerHeadless();
|
|
6401
6403
|
this.hideDockerWindow();
|
|
6402
6404
|
}
|