package: create app/package.json at build time

This commit is contained in:
bordun 2018-10-28 16:00:59 +01:00
parent e976e10458
commit 07c46db9ab
5 changed files with 32 additions and 30 deletions

View file

@ -7,7 +7,7 @@ window.ELECTRON_FULLSCREEN = window.ELECTRON_FULLSCREEN || false
window.LANG = (ARGV.lang || navigator.language || '').substr(0, 2).toLowerCase()
window.PACKAGE = require('../../../app/package.json')
window.PACKAGE = require('../../../package.json')
document.title = PACKAGE.productName + ' v' + PACKAGE.version
window.LOADING = null