A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
desktop: use app version from autoUpdater
Abdullah Attabf1238509963
diff --git a/apps/desktop/.gitignore b/apps/desktop/.gitignoreindex 0fbd26552..d50f5712f 100644--- a/apps/desktop/.gitignore+++ b/apps/desktop/.gitignore@@ -1,4 +1,5 @@node_modulesbuildoutput-dist\ No newline at end of file+dist+_catalog\ No newline at end of filediff --git a/apps/desktop/src/utils/autoupdater.ts b/apps/desktop/src/utils/autoupdater.tsindex 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",