diff --git a/package.json b/package.json index 0562f98..3c44b6e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/build-zip.js b/scripts/build-zip.js index 9f1380a..f27272a 100644 --- a/scripts/build-zip.js +++ b/scripts/build-zip.js @@ -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();