Fix build-zip script

This commit is contained in:
Tamius Han 2020-02-08 01:05:05 +01:00
parent 8945226d24
commit 470f576b41

View File

@ -47,7 +47,7 @@ const main = () => {
} }
const destDir = path.join(__dirname, `../dist-${browserPostfix}`); const destDir = path.join(__dirname, `../dist-${browserPostfix}`);
const zipDir = path.join(__dirname, '../dist-zip'); const zipDir = path.join(__dirname, '../dist-zip');
const {name, version} = extractExtensionData(); const {name, version} = extractExtensionData(browserPostfix);
// collapse spaces and dashes into single dash // collapse spaces and dashes into single dash
const baseFilename = `${name.replace(/[ -]+/g, '-')}-${version}`; const baseFilename = `${name.replace(/[ -]+/g, '-')}-${version}`;