Skip to content

Commit 3ddf260

Browse files
committed
chore: fix script
1 parent 422c52d commit 3ddf260

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/build-zip.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ const argv = require('minimist')(process.argv.slice(2))
88
const browser = argv['build-browser'] || 'chrome'
99
const isFireFox = browser === 'firefox'
1010

11-
const distSuffix = isFireFox ? '-firefox' : ''
12-
13-
const DEST_DIR = path.join(__dirname, `../dist${distSuffix}`)
14-
const DEST_ZIP_DIR = path.join(__dirname, `../dist-zip${distSuffix}`)
11+
const DEST_DIR = path.join(__dirname, `../dist${isFireFox ? '-firefox' : ''}`)
12+
const DEST_ZIP_DIR = path.join(__dirname, '../dist-zip')
1513

1614
const extractExtensionData = () => {
1715
const extPackageJson = require('../package.json')
@@ -47,7 +45,7 @@ const buildZip = (src, dist, zipFilename) => {
4745

4846
const main = () => {
4947
const { name, version } = extractExtensionData()
50-
const zipFilename = `${name}-v${version}.zip`
48+
const zipFilename = `${name}${isFireFox ? '-firefox' : ''}-v${version}.zip`
5149

5250
makeDestZipDirIfNotExists()
5351

0 commit comments

Comments
 (0)