1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

move buildVersionInjectable from common to main

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2022-08-16 09:22:35 +03:00
parent 4b017ff525
commit babd4c63c9
3 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,9 @@
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getGlobalOverride } from "../../common/test-utils/get-global-override";
import buildVersionInjectable from "./build-version.injectable";
export default getGlobalOverride(buildVersionInjectable, () => "6.0.0");

View File

@ -3,11 +3,11 @@
* Licensed under MIT License. See LICENSE in root directory for more information. * Licensed under MIT License. See LICENSE in root directory for more information.
*/ */
import { getInjectable } from "@ogre-tools/injectable"; import { getInjectable } from "@ogre-tools/injectable";
import { app } from "electron"; import electronAppInjectable from "../electron-app/electron-app.injectable";
const buildVersionInjectable = getInjectable({ const buildVersionInjectable = getInjectable({
id: "build-version", id: "build-version",
instantiate: () => app.getVersion(), instantiate: (di) => di.inject(electronAppInjectable).getVersion(),
}); });
export default buildVersionInjectable; export default buildVersionInjectable;

View File

@ -6,7 +6,7 @@ import { getInjectable } from "@ogre-tools/injectable";
import { showAbout } from "./menu"; import { showAbout } from "./menu";
import showMessagePopupInjectable from "../electron-app/features/show-message-popup.injectable"; import showMessagePopupInjectable from "../electron-app/features/show-message-popup.injectable";
import appVersionInjectable from "../../common/vars/app-version.injectable"; import appVersionInjectable from "../../common/vars/app-version.injectable";
import buildVersionInjectable from "../../common/vars/build-version.injectable"; import buildVersionInjectable from "./build-version.injectable";
const showAboutInjectable = getInjectable({ const showAboutInjectable = getInjectable({
id: "show-about", id: "show-about",