1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/main/electron-app/features/quit-and-install-update.injectable.ts
Janne Savolainen 84ac22904d
Introduce a tray item for updating application
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-05-20 14:07:53 +03:00

19 lines
499 B
TypeScript

/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import { autoUpdater } from "electron-updater";
const quitAndInstallUpdateInjectable = getInjectable({
id: "quit-and-install-update",
instantiate: () => () => {
autoUpdater.quitAndInstall(true, true);
},
causesSideEffects: true,
});
export default quitAndInstallUpdateInjectable;