Browse Source
Merge pull request #688 from MortalKastor/harden-build
Native deps building failproofing
master
Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
5 deletions
-
.npmrc
-
scripts/compile.sh
|
|
@ -0,0 +1,3 @@ |
|
|
|
npm_config_target=1.8.7 |
|
|
|
npm_config_disturl=https://atom.io/download/electron |
|
|
|
npm_config_runtime=electron |
|
|
@ -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 |
|
|
|