Skip to content

platform/updates/rollback

Defined in: app/src/platform/updates/rollback.ts:51

An AppImage keeps a copy of itself and swaps it back.

new AppImageRollback(appImage, directory, launch?): AppImageRollback

Defined in: app/src/platform/updates/rollback.ts:61

string

The running AppImage file.

string

Where the copy is kept.

Launcher = launchDetached

Starts the restored version.

AppImageRollback

keep(): void

Defined in: app/src/platform/updates/rollback.ts:71

Keeps the running version, right before the update installs.

void

Rollback.keep

prepare(): Promise<void>

Defined in: app/src/platform/updates/rollback.ts:67

Fetches what a rollback needs while the browser runs, after an update was downloaded.

Promise<void>

Rollback.prepare

restore(args): boolean

Defined in: app/src/platform/updates/rollback.ts:76

Brings the previous version back and starts it.

readonly string[]

Command line arguments for the restored version, where it can take them.

boolean

Whether the previous version could be restored.

Rollback.restore


Defined in: app/src/platform/updates/rollback.ts:91

An NSIS installation keeps the installer of the running version, verified against the signed feed, and reinstalls it silently.

new NsisRollback(directory, launch?): NsisRollback

Defined in: app/src/platform/updates/rollback.ts:99

string

Where the installer is kept.

Launcher = launchDetached

Starts the installer.

NsisRollback

keep(): void

Defined in: app/src/platform/updates/rollback.ts:135

Keeps the running version, right before the update installs.

void

Rollback.keep

prepare(version, download): Promise<void>

Defined in: app/src/platform/updates/rollback.ts:108

Fetches what a rollback needs while the browser runs, after an update was downloaded.

string

The running version.

PackageDownloader

Fetches the package of a version.

Promise<void>

Rollback.prepare

restore(_args): boolean

Defined in: app/src/platform/updates/rollback.ts:145

Reinstalls the previous version silently; the installer starts it afterwards, without arguments.

readonly string[]

Not used, because the installer starts the browser.

boolean

Whether an installer of the previous version was found.

Rollback.restore

Defined in: app/src/platform/updates/rollback.ts:20

Keeps the running version so that a failed update can be undone without the network.

keep(): void

Defined in: app/src/platform/updates/rollback.ts:28

Keeps the running version, right before the update installs.

void

prepare(version, download): Promise<void>

Defined in: app/src/platform/updates/rollback.ts:26

Fetches what a rollback needs while the browser runs, after an update was downloaded.

string

The running version.

PackageDownloader

Fetches the package of a version.

Promise<void>

restore(args): boolean

Defined in: app/src/platform/updates/rollback.ts:34

Brings the previous version back and starts it.

readonly string[]

Command line arguments for the restored version, where it can take them.

boolean

Whether the previous version could be restored.


Defined in: app/src/platform/updates/rollback.ts:168

Where rollback files live, and the running AppImage, if any.

readonly appImage: string | undefined

Defined in: app/src/platform/updates/rollback.ts:170

readonly directory: string

Defined in: app/src/platform/updates/rollback.ts:169

Launcher = (file, args) => void

Defined in: app/src/platform/updates/rollback.ts:38

Starts a program detached from the browser.

string

readonly string[]

void


PackageDownloader = (version) => Promise<{ chunks: AsyncIterable<Uint8Array>; sha512: string; }>

Defined in: app/src/platform/updates/rollback.ts:45

Streams the package of a version, with its SHA-512 from the signed manifest.

string

Promise<{ chunks: AsyncIterable<Uint8Array>; sha512: string; }>

rollbackFor(type, options): Rollback | undefined

Defined in: app/src/platform/updates/rollback.ts:179

Picks the rollback for an installation type; other types are updated by IT or the package manager, or have no automatic rollback yet.

InstallType

The installation type.

RollbackOptions

Where rollback files live and the running AppImage, if any.

Rollback | undefined