From 80d8c978f0438ca0abbcf7c590d1349812f211f5 Mon Sep 17 00:00:00 2001 From: Ryan Lutz Date: Mon, 13 Feb 2023 13:36:34 -0500 Subject: [PATCH] fix(wrw): improve build script to work more reliably TICKET: BG-68090 --- DEVELOPER.md | 2 +- scripts/docker-build.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index 66fa39ae..ec06ccd5 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -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 diff --git a/scripts/docker-build.sh b/scripts/docker-build.sh index 8351d7d0..5bbee2c7 100755 --- a/scripts/docker-build.sh +++ b/scripts/docker-build.sh @@ -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" \ @@ -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