MCPcopy
hub / github.com/wavetermdev/waveterm / installUpdate

Method installUpdate

emain/updater.ts:203–210  ·  view source on GitHub ↗

* Restarts the app and installs an update if it is available.

()

Source from the content-addressed store, hash-verified

201 * Restarts the app and installs an update if it is available.
202 */
203 async installUpdate() {
204 if (this.status == "ready") {
205 this.status = "installing";
206 await delay(1000);
207 setUserConfirmedQuit(true);
208 autoUpdater.quitAndInstall();
209 }
210 }
211}
212
213export function getResolvedUpdateChannel(): string {

Callers

nothing calls this directly

Calls 2

delayFunction · 0.90
setUserConfirmedQuitFunction · 0.90

Tested by

no test coverage detected