mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Support MacOS arm64 build (#3682)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> Co-authored-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
32e0293b08
commit
56bd8cd0b1
6 files changed
+79
-49
No files matched your search
@@ -60,13 +60,13 @@ export class LensBinary {
|
||||
this.logger = console;
|
||||
let arch = null;
|
||||
|
||||
if (process.arch == "x64") {
|
||||
if (process.env.BINARY_ARCH) {
|
||||
arch = process.env.BINARY_ARCH;
|
||||
} else if (process.arch == "x64") {
|
||||
arch = "amd64";
|
||||
}
|
||||
else if (process.arch == "x86" || process.arch == "ia32") {
|
||||
} else if (process.arch == "x86" || process.arch == "ia32") {
|
||||
arch = "386";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
arch = process.arch;
|
||||
}
|
||||
this.arch = arch;
|
||||
|
||||
Reference in new issue
Block a user