Merge pull request #1722 from lbryio/version-info
Get version from package.json
This commit is contained in:
commit
d15fb0b293
1 changed files with 2 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue