MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / makeState

Function makeState

apps/desktop/src/main/updater.ts:30–45  ·  view source on GitHub ↗
(overrides: Partial<AppUpdateState> = {})

Source from the content-addressed store, hash-verified

28})
29
30function makeState(overrides: Partial<AppUpdateState> = {}): AppUpdateState {
31 return {
32 phase: 'idle',
33 currentVersion: app.getVersion(),
34 availableVersion: null,
35 releaseName: null,
36 releaseDate: null,
37 releaseNotes: null,
38 progressPercent: null,
39 transferredBytes: null,
40 totalBytes: null,
41 bytesPerSecond: null,
42 message: 'Check GitHub releases for a newer ZenNotes build.',
43 ...overrides
44 }
45}
46
47function normalizeReleaseNotes(notes: UpdateInfo['releaseNotes']): string | null {
48 if (!notes) return null

Callers 3

updater.tsFile · 0.70
nextStateFromInfoFunction · 0.70
initAppUpdaterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected