Fix bundled helm3 binary on windows (#233)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Cody Belcher <cody.t.belcher@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and Cody Belcher committed 2020-04-16 11:23:41 -05:00
1 parent 8f45c04c9f
commit a19110711f
1 file changed
+1 -3
+1 -3
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)