Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: use app version from autoUpdater

Abdullah Attabf1238509963
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 <http://www.gnu.org/licenses/>.
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",