From 73d996cb1733ef5f11a393da3217f9d3d635eb0c Mon Sep 17 00:00:00 2001 From: Roy Li Date: Thu, 3 Dec 2020 20:17:48 +0800 Subject: [PATCH] chore: rename asset --- scripts/bundle.js | 2 +- scripts/update-appcast.js | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) 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', }