electron-updater
Advanced tools
Comparing version 4.6.4 to 4.6.5
## 4.3.0 | ||
## 4.6.5 | ||
### Patch Changes | ||
- [#6381](https://github.com/electron-userland/electron-builder/pull/6381) [`828fcd37`](https://github.com/electron-userland/electron-builder/commit/828fcd378c2df28763893ef68f92d5b1a72fead3) Thanks [@zhanjinfeng](https://github.com/zhanjinfeng)! - fix: use `uname -a` to get arch instead of 'process.arch' in mac silicon | ||
## 4.6.4 | ||
@@ -4,0 +10,0 @@ |
@@ -44,3 +44,14 @@ "use strict"; | ||
} | ||
const isArm64Mac = process.arch === "arm64" || isRosetta; | ||
let isArm64Mac = false; | ||
try { | ||
this.debug("Checking for arm64 in uname"); | ||
const result = child_process_1.execFileSync("uname", ['-a'], { encoding: "utf8" }); | ||
const isArm = result.includes('ARM'); | ||
log.info(`Checked 'uname -a': arm64=${isArm}`); | ||
isArm64Mac = isArm64Mac || isArm; | ||
} | ||
catch (e) { | ||
log.warn(`uname shell command to check for arm64 failed: ${e}`); | ||
} | ||
isArm64Mac = isArm64Mac || process.arch === 'arm64' || isRosetta; | ||
// allow arm64 macs to install universal or rosetta2(x64) - https://github.com/electron-userland/electron-builder/pull/5524 | ||
@@ -47,0 +58,0 @@ const isArm64 = (file) => { var _a; return file.url.pathname.includes("arm64") || ((_a = file.info.url) === null || _a === void 0 ? void 0 : _a.includes("arm64")); }; |
{ | ||
"name": "electron-updater", | ||
"version": "4.6.4", | ||
"version": "4.6.5", | ||
"description": "Cross platform updater for electron applications", | ||
@@ -5,0 +5,0 @@ "main": "out/main.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
427300
3743