Zip: collapse dashes and spaces into single dash
This commit is contained in:
parent
4be2d902b8
commit
62b986575c
@ -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",
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user