@web-auto/webauto 0.1.7 → 0.1.8

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.
@@ -2283,6 +2283,7 @@ ipcMain2.handle("env:repairDeps", async (_evt, input) => {
2283
2283
  const wantGeoip = Boolean(input?.geoip);
2284
2284
  const wantReinstall = Boolean(input?.reinstall);
2285
2285
  const wantUninstall = Boolean(input?.uninstall);
2286
+ const wantEnsureBackend = Boolean(input?.ensureBackend);
2286
2287
  const result = { ok: true, core: null, install: null, env: null };
2287
2288
  if (wantCore) {
2288
2289
  const coreOk = await startCoreDaemon().catch(() => false);
@@ -2299,7 +2300,7 @@ ipcMain2.handle("env:repairDeps", async (_evt, input) => {
2299
2300
  else args.push("--install");
2300
2301
  if (wantBrowser) args.push("--download-browser");
2301
2302
  if (wantGeoip) args.push("--download-geoip");
2302
- if (!wantUninstall) args.push("--ensure-backend");
2303
+ if (!wantUninstall && wantEnsureBackend) args.push("--ensure-backend");
2303
2304
  const installRes = await runJson({
2304
2305
  title: "env repair deps",
2305
2306
  cwd: REPO_ROOT2,
@@ -1739,7 +1739,6 @@ function renderSetupWizard(root, ctx2) {
1739
1739
  else if (uninstall) args.push("--uninstall");
1740
1740
  if (browser) args.push("--download-browser");
1741
1741
  if (geoip) args.push("--download-geoip");
1742
- if (!uninstall) args.push("--ensure-backend");
1743
1742
  const res = await ctx2.api.cmdRunJson({
1744
1743
  title: "setup auto repair",
1745
1744
  cwd: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web-auto/webauto",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "webauto": "bin/webauto.mjs"