Get version from package.json #1722

Merged
tzarebczan merged 1 commit from version-info into master 2018-07-02 06:08:23 +02:00

View file

@ -11,6 +11,7 @@ import isDev from 'electron-is-dev';
import Daemon from './Daemon'; import Daemon from './Daemon';
import createTray from './createTray'; import createTray from './createTray';
import createWindow from './createWindow'; import createWindow from './createWindow';
import pjson from '../../package.json';
autoUpdater.autoDownload = true; autoUpdater.autoDownload = true;
@ -171,7 +172,7 @@ ipcMain.on('version-info-requested', () => {
return ver.replace(/([^-])rc/, '$1-rc'); 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 latestReleaseAPIURL = 'https://api.github.com/repos/lbryio/lbry-app/releases/latest';
const opts = { const opts = {
headers: { headers: {