mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix helm downloading on windows
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
d1a7e034d7
commit
2d4d8e35c9
3 files changed
+54
-36
No files matched your search
+7
-8
@@ -66,17 +66,16 @@ export function getBinaryName(name: string, { forPlatform = normalizedPlatform }
|
||||
return name;
|
||||
}
|
||||
|
||||
export const baseBinariesDir = onceCell(() => (
|
||||
path.join(
|
||||
isProduction
|
||||
? process.resourcesPath
|
||||
: path.join(process.cwd(), "binaries", "client", normalizedPlatform),
|
||||
normalizedArch,
|
||||
)
|
||||
export const resourcesDir = onceCell(() => (
|
||||
isProduction
|
||||
? process.resourcesPath
|
||||
: path.join(process.cwd(), "binaries", "client", normalizedPlatform)
|
||||
));
|
||||
|
||||
export const baseBinariesDir = onceCell(() => path.join(resourcesDir.get(), normalizedArch));
|
||||
|
||||
export const helmBinaryName = getBinaryName("helm");
|
||||
export const helmBinaryPath = onceCell(() => path.join(baseBinariesDir.get(), helmBinaryName));
|
||||
export const helmBinaryPath = onceCell(() => path.join(resourcesDir.get(), helmBinaryName));
|
||||
export const kubectlBinaryName = getBinaryName("kubectl");
|
||||
export const kubectlBinaryPath = onceCell(() => path.join(baseBinariesDir.get(), kubectlBinaryName));
|
||||
|
||||
|
||||
Reference in new issue
Block a user