From f08e372bcfe45d8446095467ea99b595a008874c Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Wed, 31 Jan 2024 14:46:42 +0500 Subject: [PATCH] desktop: use app version from autoUpdater --- apps/desktop/.gitignore | 3 ++- apps/desktop/src/utils/autoupdater.ts | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/desktop/.gitignore b/apps/desktop/.gitignore index 0fbd26552..d50f5712f 100644 --- a/apps/desktop/.gitignore +++ b/apps/desktop/.gitignore @@ -1,4 +1,5 @@ node_modules build output -dist \ No newline at end of file +dist +_catalog \ No newline at end of file diff --git a/apps/desktop/src/utils/autoupdater.ts b/apps/desktop/src/utils/autoupdater.ts index a7b92c360..2d601cf39 100644 --- a/apps/desktop/src/utils/autoupdater.ts +++ b/apps/desktop/src/utils/autoupdater.ts @@ -19,9 +19,10 @@ along with this program. If not, see . import { autoUpdater } from "electron-updater"; import { config } from "./config"; -import { version } from "../../package.json"; -const CHANNEL = version.endsWith("-beta") ? "beta" : "latest"; +const CHANNEL = autoUpdater.currentVersion.raw.endsWith("-beta") + ? "beta" + : "latest"; async function configureAutoUpdater() { autoUpdater.setFeedURL({ provider: "generic",