Skip to content

Commit

Permalink
fix(electron-updater): search 'arm64' in name and url to fix updates …
Browse files Browse the repository at this point in the history
…from Github private repos
  • Loading branch information
nikcheerla committed Aug 9, 2021
1 parent ab585d1 commit 1580ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/electron-updater/src/MacUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class MacUpdater extends AppUpdater {
}

// allow arm64 macs to install universal or rosetta2(x64) - https://github.com/electron-userland/electron-builder/pull/5524
const isArm64 = (file: ResolvedUpdateFileInfo) => file.url.pathname.includes("arm64")
const isArm64 = (file: ResolvedUpdateFileInfo) => (file.url.pathname.includes("arm64") || file.info.url?.includes("arm64"))
if (files.some(isArm64)) {
files = files.filter(file => (process.arch === "arm64" || isRosetta) === isArm64(file))
}
Expand Down

0 comments on commit 1580ea6

Please sign in to comment.