Browse Source

Merge pull request #688 from MortalKastor/harden-build

Native deps building failproofing
master
Gaëtan Renaudeau 7 years ago
committed by GitHub
parent
commit
4f947612f2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .npmrc
  2. 10
      scripts/compile.sh

3
.npmrc

@ -0,0 +1,3 @@
npm_config_target=1.8.7
npm_config_disturl=https://atom.io/download/electron
npm_config_runtime=electron

10
scripts/compile.sh

@ -2,11 +2,11 @@
set -e
export GIT_REVISION=`git rev-parse HEAD`
export SENTRY_URL=https://db8f5b9b021048d4a401f045371701cb@sentry.io/274561
GIT_REVISION=`git rev-parse HEAD`
SENTRY_URL=https://db8f5b9b021048d4a401f045371701cb@sentry.io/274561
NODE_ENV=production
rm -rf ./node_modules/.cache dist
yarn
rm -rf dist &&
NODE_ENV=production yarn run webpack-cli --mode production --config webpack/internals.config.js &&
NODE_ENV=production yarn run electron-webpack
yarn run webpack-cli --mode production --config webpack/internals.config.js
yarn run electron-webpack

Loading…
Cancel
Save