MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / shouldUpgradeDaemonForDesktop

Function shouldUpgradeDaemonForDesktop

apps/desktop/src/main/index.ts:217–221  ·  view source on GitHub ↗
(daemonVersion: string | null)

Source from the content-addressed store, hash-verified

215};
216
217const shouldUpgradeDaemonForDesktop = (daemonVersion: string | null): boolean => {
218 if (!daemonVersion) return false;
219 const comparison = compareVersions(app.getVersion(), daemonVersion);
220 return comparison !== null && comparison > 0;
221};
222
223const normalizedPath = (path: string): string => path.replaceAll("\\", "/");
224

Callers 1

Calls 1

compareVersionsFunction · 0.70

Tested by

no test coverage detected