Skip to content

Commit

Permalink
Merge pull request #286 from BitGo/BG-68090-improve-build-script
Browse files Browse the repository at this point in the history
fix(wrw): improve build script to work more reliably
  • Loading branch information
rlutzbitgo authored Feb 21, 2023
2 parents b3f4be5 + 80d8c97 commit b22f062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ Add the output to the bottom of the release notes section
- After having already ran the docker build script
- Go into the `release` folder in the root of the repository and upload the `.dmg` , `.deb` and `.exe` files into the release draft in GitHub
- Publish release in GitHub
- Go to Slack on #apps-ovc-wrw and announce the release with the link to GitHub release page
- Go to Slack on #eng-wrw and announce the release with the link to GitHub release page
5 changes: 3 additions & 2 deletions scripts/docker-build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env bash

npm run build

docker run --rm -ti \
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_BRANCH|TRAVIS_PULL_REQUEST_|APPVEYOR_|CSC_|GH_|GITHUB_|BT_|AWS_|STRIP|BUILD_') \
--env ELECTRON_CACHE="/root/.cache/electron" \
Expand All @@ -12,3 +10,6 @@ docker run --rm -ti \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:16-wine \
/bin/bash -c "npm install && npm run build -- -wl"

npm i dmg-license && npm run build
npm uninstall dmg-license

0 comments on commit b22f062

Please sign in to comment.