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

Fix bundled helm3 binary on windows (#233)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-04-09 17:58:12 +03:00 committed by GitHub
parent f1795307f9
commit 8c348f076e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,13 +44,11 @@ export class LensBinary {
}
this.arch = arch
this.platformName = process.platform === "win32" ? "windows" : process.platform
this.dirname = path.normalize(path.join(baseDir, this.binaryName))
if (process.platform === "win32") {
this.binaryName = this.binaryName+".exe"
this.originalBinaryName = this.originalBinaryName+".exe"
}
this.dirname = path.normalize(path.join(baseDir, this.binaryName))
const tarName = this.getTarName()
if (tarName) {
this.tarPath = path.join(this.dirname, tarName)