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

@@ -17,12 +17,8 @@ else
CODE=".build/electron/$NAME"
fi
INTENDED_VERSION="v`node -p "require('./package.json').electronVersion"`"
INSTALLED_VERSION=$(cat .build/electron/version 2> /dev/null)
# Get electron
(test -f "$CODE" && [ $INTENDED_VERSION == $INSTALLED_VERSION ]) || ./node_modules/.bin/gulp electron
node build/lib/electron.js || ./node_modules/.bin/gulp electron
export VSCODE_DEV=1
if [[ "$OSTYPE" == "darwin"* ]]; then