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

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-04-09 17:47:26 +03:00
parent f1795307f9
commit e397f51fd3

View File

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