@rudderhq/cli 0.3.6-canary.8 → 0.3.6-canary.9

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 CHANGED
@@ -14644,9 +14644,6 @@ function findDesktopExecutablePids(executablePath, target) {
14644
14644
  return matchesExecutable && pid !== process.pid ? [pid] : [];
14645
14645
  });
14646
14646
  }
14647
- function isRunningInsideDesktopExecutable() {
14648
- return path21.basename(process.execPath).toLowerCase().startsWith(DESKTOP_APP_NAME.toLowerCase());
14649
- }
14650
14647
  async function waitForUpdateQuitResponse(responsePath, timeoutMs = 8e3) {
14651
14648
  const startedAt = Date.now();
14652
14649
  while (Date.now() - startedAt < timeoutMs) {
@@ -14799,8 +14796,6 @@ async function prepareForDesktopReplace(paths, target, options = {}) {
14799
14796
  } else {
14800
14797
  await delay2(options.updateQuitForceDelayMs ?? UPDATE_QUIT_FORCE_DELAY_MS);
14801
14798
  }
14802
- } else if (!isRunningInsideDesktopExecutable()) {
14803
- throw new Error("Cannot find the managed Rudder Desktop executable to request a safe update quit. Close Rudder and rerun start.");
14804
14799
  }
14805
14800
  const replacePath = target.platform === "windows" ? paths.installRoot : paths.appPath;
14806
14801
  if (await removePathWithRetry(replacePath)) return;