Skip to content

Commit 11ca5c4

Browse files
standalone: Disable auto-update offer on arm64 Macs
The auto-update system is currently fetching metadata from the x64 files, so if the update is accepted, it will replace the arm64 binaries with x64 ones, causing severe performance issues. This patch disables it for now to prevent bigger problems.
1 parent f0a90b9 commit 11ca5c4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/electron/services/auto-update.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
import { BrowserWindow, ipcMain } from 'electron'
22
import electronUpdater, { type AppUpdater } from 'electron-updater'
33

4+
import { PlatformUtils } from '../../types/platform'
5+
import { getSystemInfo } from './system-info'
6+
47
/**
58
* Setup auto updater
69
* @param {BrowserWindow} mainWindow - The main Electron window
710
*/
811
export const setupAutoUpdater = (mainWindow: BrowserWindow): void => {
12+
const systemInfo = getSystemInfo()
13+
14+
// Skip auto-updates for ARM64 Macs to prevent downloading wrong architecture
15+
if (PlatformUtils.isArm64Mac(systemInfo.platform, systemInfo.arch)) {
16+
console.log('Skipping auto-updater setup on ARM64 Mac to prevent architecture mismatch issues')
17+
return
18+
}
19+
920
const autoUpdater: AppUpdater = electronUpdater.autoUpdater
1021
autoUpdater.logger = console
1122
autoUpdater.autoDownload = false // Prevent automatic downloads

0 commit comments

Comments
 (0)