mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
Lock electron development version, and re-use it in Makefile (#371)
By locking the electron version in `package.json`, we can require it from the Makefile to ensure production and development are both running the exact same electron version, and ensures they don't easily get out of sync. Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
a88cab2eb1
commit
e7760e253f
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ ELECTRON_PACKAGER=./node_modules/.bin/electron-packager
|
||||
ELECTRON_BUILDER=./node_modules/.bin/electron-builder
|
||||
ELECTRON_OSX_SIGN=./node_modules/.bin/electron-osx-sign
|
||||
ELECTRON_IGNORE=$(shell node scripts/packageignore.js)
|
||||
ELECTRON_VERSION=0.37.6
|
||||
ELECTRON_VERSION=$(shell node -e "console.log(require('./package.json').devDependencies['electron-prebuilt'])")
|
||||
ETCHER_VERSION=$(shell node -e "console.log(require('./package.json').version)")
|
||||
APPLICATION_NAME=$(shell node -e "console.log(require('./package.json').displayName)")
|
||||
APPLICATION_DESCRIPTION=$(shell node -e "console.log(require('./package.json').description)")
|
||||
|
@ -78,7 +78,7 @@
|
||||
"electron-mocha": "^1.2.2",
|
||||
"electron-osx-sign": "^0.3.0",
|
||||
"electron-packager": "^7.0.1",
|
||||
"electron-prebuilt": "^0.37.6",
|
||||
"electron-prebuilt": "0.37.6",
|
||||
"gulp": "^3.9.0",
|
||||
"gulp-jscs": "^3.0.2",
|
||||
"gulp-jshint": "^2.0.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user