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

Function shouldUpgradeDaemonForDesktop

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

Source from the content-addressed store, hash-verified

175};
176
177const shouldUpgradeDaemonForDesktop = (daemonVersion: string | null): boolean => {
178 if (!daemonVersion) return false;
179 const comparison = compareVersions(app.getVersion(), daemonVersion);
180 return comparison !== null && comparison > 0;
181};
182
183const normalizedPath = (path: string): string => path.replaceAll("\\", "/");
184

Callers 1

Calls 1

compareVersionsFunction · 0.70

Tested by

no test coverage detected