Skip to content

main/updates

Defined in: app/src/main/updates.ts:32

What the update service needs from the composition root.

readonly boot: BootCheck

Defined in: app/src/main/updates.ts:38

The boot guard and rollback of this start.

readonly clock: Clock

Defined in: app/src/main/updates.ts:34

readonly logger: Logger

Defined in: app/src/main/updates.ts:35

readonly policies: PolicyService

Defined in: app/src/main/updates.ts:33

readonly userData: string

Defined in: app/src/main/updates.ts:36

createUpdateService(deps): UpdateService

Defined in: app/src/main/updates.ts:47

Creates the update service from policies and the installation. electron-updater is imported only when a check finds an update, so it adds nothing to the start-up time or to the checks that find none.

UpdateDependencies

Policies, clock, logger and the profile folder.

UpdateService