fix: shouldn't get "new version" message while using latest beta
Massimo Melina committed
Apr 9, 2025 at 21:40 UTC
80f15a546341c25ecde0da3ccce7918c2dd188a1
2 files changed
+2
-2
src/github.ts
+1
-1
@@ -80,7 +80,7 @@ export async function downloadPlugin(repo: Repo, { branch='', overwrite=false }=
80
81
async function go(url: string, folder: string, zipRoot: string) {
82
const installPath = PLUGINS_PATH + '/' + folder
83
- const tempInstallPath = installPath + '--' + DISABLING_SUFFIX
83
+ const tempInstallPath = installPath + '-' + DISABLING_SUFFIX
84
const foldersToCopy = [ // from longer to shorter, so we first test the longer
85
zipRoot + '-' + process.platform + '-' + process.arch,
86
zipRoot + '-' + process.platform,
src/update.ts
+1
-1
@@ -83,7 +83,7 @@ export async function getUpdates(strict=false) {
83
const stable: Release = prepareRelease(await getRepoInfo(HFS_REPO + '/releases/latest'))
84
const res = await getVersions(r => r.versionScalar < stable.versionScalar) // we don't consider betas before stable
85
const ret = res.filter(x => x.prerelease && (strict ? x.isNewer : (x.versionScalar !== curV)) )
86
- if (stable.isNewer || RUNNING_BETA)
86
+ if (stable.isNewer || RUNNING_BETA && !strict)
87
ret.push(stable)
88
return ret
89
}