Skip to content

Commit

Permalink
fix(dev): right update version in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
orblazer committed Dec 20, 2021
1 parent d83a5be commit 1023268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const { version } = require('../package.json')
// Bump version in desktop file
const file = resolve(__dirname, '../package/metadata.desktop')
fs.readFile(file, 'utf-8').then((data) => {
const updated = data.replace(/X-KDE-PluginInfo-Version=\d+\.\d+\.\d+/, 'X-KDE-PluginInfo-Version=' + version)
const updated = data.replace(/X-KDE-PluginInfo-Version=(.*?)\n/, `X-KDE-PluginInfo-Version=${version}\n`)
fs.writeFile(file, updated, 'utf-8')
})

0 comments on commit 1023268

Please sign in to comment.