remove package.json electronVersion

This commit is contained in:
Joao Moreno
2017-11-16 14:43:41 +01:00
parent 3c70e7e276
commit fdcecb53e6
12 changed files with 17 additions and 46 deletions

View File

@@ -18,14 +18,11 @@ function code() {
CODE=".build/electron/$NAME"
fi
INTENDED_VERSION="v`node -p "require('./package.json').electronVersion"`"
INSTALLED_VERSION=`cat .build/electron/version 2> /dev/null`
# Node modules
test -d node_modules || yarn
# Get electron
(test -f "$CODE" && [ $INTENDED_VERSION == $INSTALLED_VERSION ]) || ./node_modules/.bin/gulp electron
node build/lib/electron.js || ./node_modules/.bin/gulp electron
# Build
test -d out || ./node_modules/.bin/gulp compile