diff --git a/scripts/bundle.js b/scripts/bundle.js index 03e758e..2b01b90 100644 --- a/scripts/bundle.js +++ b/scripts/bundle.js @@ -74,7 +74,7 @@ async function main() { const version = require('../package.json').version const buildDir = join(__dirname, '../build') const releaseDir = join(__dirname, '../release') - const pkg = join(releaseDir, `${pkgName}-v${version}.bobplugin`) + const pkg = join(releaseDir, `${pkgName}.bobplugin`) const info = { ...generateInfo(), version, diff --git a/scripts/update-appcast.js b/scripts/update-appcast.js index 48cc4e3..c4ffdba 100644 --- a/scripts/update-appcast.js +++ b/scripts/update-appcast.js @@ -8,10 +8,7 @@ const githubRelease = `https://github.com/geekdada/bob-plugin-deepl-translate/re function main() { const pkgName = 'bob-plugin-deepl-translate' - const pkgPath = path.join( - __dirname, - `../release/${pkgName}-v${pkg.version}.bobplugin`, - ) + const pkgPath = path.join(__dirname, `../release/${pkgName}.bobplugin`) const appcastPath = path.join(__dirname, '../appcast.json') const fileBuffer = fs.readFileSync(pkgPath) @@ -24,7 +21,7 @@ function main() { desc: 'https://github.com/geekdada/bob-plugin-deepl-translate/blob/master/CHANGELOG.md', sha256: hex, - url: `${githubRelease}/v${pkg.version}/${pkgName}-v${pkg.version}.bobplugin`, + url: `${githubRelease}/v${pkg.version}/${pkgName}.bobplugin`, minBobVersion: '0.5.0', }