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

Function shouldUpgradeDaemonForDesktop

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

Source from the content-addressed store, hash-verified

164};
165
166const shouldUpgradeDaemonForDesktop = (daemonVersion: string | null): boolean => {
167 if (!daemonVersion) return false;
168 const comparison = compareVersions(app.getVersion(), daemonVersion);
169 return comparison !== null && comparison > 0;
170};
171
172const normalizedPath = (path: string): string => path.replaceAll("\\", "/");
173

Callers 1

Calls 1

compareVersionsFunction · 0.70

Tested by

no test coverage detected