mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Make sense in name of injectable
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
ccc0d539eb
commit
e213e2d314
@ -4,14 +4,14 @@
|
|||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import bundledBinariesNormalizedArchInjectable from "./bundled-binaries-normalized-arch.injectable";
|
import normalizedPlatformArchitecture from "./normalized-platform-architecture.injectable";
|
||||||
import bundledResourcesDirectoryInjectable from "./bundled-resources-dir.injectable";
|
import bundledResourcesDirectoryInjectable from "./bundled-resources-dir.injectable";
|
||||||
|
|
||||||
const baseBundeledBinariesDirectoryInjectable = getInjectable({
|
const baseBundeledBinariesDirectoryInjectable = getInjectable({
|
||||||
id: "base-bundeled-binaries-directory",
|
id: "base-bundeled-binaries-directory",
|
||||||
instantiate: (di) => path.join(
|
instantiate: (di) => path.join(
|
||||||
di.inject(bundledResourcesDirectoryInjectable),
|
di.inject(bundledResourcesDirectoryInjectable),
|
||||||
di.inject(bundledBinariesNormalizedArchInjectable),
|
di.inject(normalizedPlatformArchitecture),
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -4,8 +4,8 @@
|
|||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
|
|
||||||
const bundledBinariesNormalizedArchInjectable = getInjectable({
|
const normalizedPlatformArchitectureInjectable = getInjectable({
|
||||||
id: "bundled-binaries-normalized-arch",
|
id: "normalized-platform-architecture",
|
||||||
instantiate: () => {
|
instantiate: () => {
|
||||||
switch (process.arch) {
|
switch (process.arch) {
|
||||||
case "arm64":
|
case "arm64":
|
||||||
@ -24,4 +24,4 @@ const bundledBinariesNormalizedArchInjectable = getInjectable({
|
|||||||
causesSideEffects: true,
|
causesSideEffects: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
export default bundledBinariesNormalizedArchInjectable;
|
export default normalizedPlatformArchitectureInjectable;
|
||||||
Loading…
Reference in New Issue
Block a user