2020-10-30 15:34:04 -05:00
|
|
|
// Copyright 2020 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-02-12 13:30:58 -08:00
|
|
|
import { ipcRenderer } from 'electron';
|
|
|
|
|
2022-03-04 11:59:47 -08:00
|
|
|
export function startUpdate(): Promise<void> {
|
|
|
|
return ipcRenderer.invoke('start-update');
|
2020-02-12 13:30:58 -08:00
|
|
|
}
|
2024-11-12 15:56:20 -08:00
|
|
|
|
|
|
|
export function forceUpdate(): Promise<void> {
|
|
|
|
return ipcRenderer.invoke('updater/force-update');
|
|
|
|
}
|