Zip: collapse dashes and spaces into single dash

This commit is contained in:
Tamius Han 2019-11-28 23:52:55 +01:00
parent 4be2d902b8
commit 62b986575c
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
"build-chrome:dev": "cross-env NODE_ENV=development BROWSER=chrome webpack --hide-modules",
"build-edge:dev": "cross-env NODE_ENV=development BROWSER=edge webpack --hide-modules",
"build-all": "rm ./dist-zip/uw-amo-source.zip; mv ./dist-zip/*.zip ./dist-zip/old/; npm run build; node scripts/build-zip.js ff; npm run build-chrome; node scripts/build-zip.js chrome; ./scripts/prepare-amo-source.sh",
"build-nightly": "./build-nightly.sh",
"build-zip": "node scripts/build-zip.js",
"watch": "npm run build -- --watch",
"watch-chrome": "npm run build-chrome -- --watch",

View File

@ -44,7 +44,7 @@ const main = () => {
const browser = process.argv[2];
const {name, version} = extractExtensionData();
const zipFilename = `${name}-${version}-${browser}.zip`;
const zipFilename = `${name.replace(/[ -]+/g, '')}-${version}-${browser}.zip`;
makeDestZipDirIfNotExists();