From 6031a99af7128e578211c539d0ffca05996f37a7 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 19 Jan 2020 21:08:34 +0100 Subject: [PATCH] fix build --- scripts/build-and-deploy.sh | 4 ++-- scripts/build-zip.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build-and-deploy.sh b/scripts/build-and-deploy.sh index 89f2494..9d44b5c 100755 --- a/scripts/build-and-deploy.sh +++ b/scripts/build-and-deploy.sh @@ -45,7 +45,7 @@ rm -rf ./dist-zip || true # no big deal if ./dist-zip doesn't exist # build firefox # npm run "${BUILD_SCRIPT}" -node scripts/build-zip.js ff +node scripts/build-zip.js ff nightly # if [ ! -z "${AMO_API_KEY}" ] ; then # if [ ! -z "${AMO_API_SECRET}" ] ; then # web-ext sign --source-dir ./dist --api-key "${AMO_API_KEY}" --api-secret "${AMO_API_SECRET}" @@ -56,7 +56,7 @@ node scripts/build-zip.js ff # build chrome # npm run "${BUILD_SCRIPT}-chrome" -node scripts/build-zip.js chrome +node scripts/build-zip.js chrome nightly # #./scripts/build-crx.sh diff --git a/scripts/build-zip.js b/scripts/build-zip.js index 9c686f8..5bda202 100644 --- a/scripts/build-zip.js +++ b/scripts/build-zip.js @@ -52,9 +52,9 @@ const main = () => { let realZipDir; if (!!testingOrNightly) { - realZipDir = path.join(DEST_ZIP_DIR, baseFilename); - } else { realZipDir = path.join(DEST_ZIP_DIR, version); + } else { + realZipDir = path.join(DEST_ZIP_DIR); } const zipFilename = `${baseFilename}-${browser}.zip`;