From 67e64044270349a035ace6d3a9983384fcc061bc Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Fri, 29 Jun 2018 17:40:31 -0400 Subject: [PATCH] Get version from package.json Prior to this, if running in dev mode, you'd get the electron version and not the LBRY-app version --- src/main/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/index.js b/src/main/index.js index c678f6579..17b6361b7 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -11,6 +11,7 @@ import isDev from 'electron-is-dev'; import Daemon from './Daemon'; import createTray from './createTray'; import createWindow from './createWindow'; +import pjson from '../../package.json'; autoUpdater.autoDownload = true; @@ -171,7 +172,7 @@ ipcMain.on('version-info-requested', () => { return ver.replace(/([^-])rc/, '$1-rc'); } - const localVersion = app.getVersion(); + const localVersion = pjson.version; const latestReleaseAPIURL = 'https://api.github.com/repos/lbryio/lbry-app/releases/latest'; const opts = { headers: { -- 2.45.3