Skip to content

Commit

Permalink
Fix specific versions
Browse files Browse the repository at this point in the history
Specific versions, such as 17.0.6, stopped working after the commit
mentioned below with the following error message:

     Checking known assets (os=linux, arch=x64, version=17.0.6)...
    Error: Unsupported version for platform (os=linux, arch=x64, version=17.0.6)!

Fixes: 0871d33 ("Use generated assets file")
  • Loading branch information
gentoo-root authored and KyleMayes committed Apr 3, 2024
1 parent 13bb038 commit 7e36b69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function getOptions(): Options {
*/
function getSpecificVersions(specificVersions: string[], version: string): string[] {
return Array.from(specificVersions)
.filter(v => /^\d+\.\d+\.\d+$/.test(v) && v.startsWith(`${version}.`))
.filter(v => /^\d+\.\d+\.\d+$/.test(v) && (v.startsWith(`${version}.`) || v === version))
.sort()
.reverse();
}
Expand Down

0 comments on commit 7e36b69

Please sign in to comment.