Fix helm downloading on windows

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-03-08 14:19:27 -05:00
1 parent d1a7e034d7
commit 2d4d8e35c9
3 files changed
+54 -36

No files matched your search

+7 -8
View File
@@ -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));