From e0f04d68e6779665b45c1180d52e26acfad6a177 Mon Sep 17 00:00:00 2001
From: truemiller <mlxndrj@gmail.com>
Date: Fri, 27 Sep 2024 11:28:06 +0100
Subject: [PATCH] fix: make PearlOTA arch specific

---
 electron/components/PearlOTA.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/electron/components/PearlOTA.js b/electron/components/PearlOTA.js
index f9794a562..5a27dcee5 100644
--- a/electron/components/PearlOTA.js
+++ b/electron/components/PearlOTA.js
@@ -1,5 +1,6 @@
 const { ipcMain } = require('electron');
 const { MacUpdater, NsisUpdater } = require('electron-updater');
+const os = require('os');
 const { logger } = require('../logger');
 const { isWindows, isMac, isDev } = require('../constants');
 const { githubUpdateOptions } = require('../constants/config');
@@ -28,6 +29,7 @@ class PearlOTA {
       this.updater.autoInstallOnAppQuit = false;
       this.updater.logger = logger;
       this.updater.forceDevUpdateConfig = isDev;
+      this.updater.updateConfigPath = `latest-mac-${os.arch()}.yml`;
       this.#bindUpdaterEvents();
     }