Skip to content

Commit

Permalink
chore: fix firefox manifest version not updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 14, 2024
1 parent 8bda969 commit a4e4598
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions release.js
Expand Up @@ -3,6 +3,7 @@ const inquirer = require('inquirer')
const semver = require('semver')
const pkg = require('./package.json')
const manifest = require('./packages/shell-chrome/manifest.json')
const manifestFirefox = require('./packages/shell-firefox/manifest.json')

const IS_CI = !!(process.env.CIRCLECI || process.env.GITHUB_ACTIONS)

Expand Down Expand Up @@ -50,6 +51,9 @@ const curVersion = pkg.version
applyIcons(manifest)
}

manifestFirefox.version = manifest.version
manifestFirefox.version_name = manifest.version_name

fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2))
{
// Electron package
Expand All @@ -64,6 +68,7 @@ const curVersion = pkg.version
fs.writeFileSync('./packages/api/package.json', JSON.stringify(pkg, null, 2))
}
fs.writeFileSync('./packages/shell-chrome/manifest.json', JSON.stringify(manifest, null, 2))
fs.writeFileSync('./packages/shell-firefox/manifest.json', JSON.stringify(manifestFirefox, null, 2))
}
else {
process.exit(1)
Expand Down

0 comments on commit a4e4598

Please sign in to comment.