Skip to content

Commit

Permalink
fix getFullVersion for betas
Browse files Browse the repository at this point in the history
  • Loading branch information
raftario committed Aug 27, 2023
1 parent a68b029 commit 2f5e5bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.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/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ async function getFullVersion(installPath: string) {
"Pkg.Revision" in properties &&
typeof properties["Pkg.Revision"] === "string"
) {
return properties["Pkg.Revision"]
const [fullVersion] = properties["Pkg.Revision"].split("-")
return fullVersion!
} else {
throw new Error("source.properties file is missing Pkg.Revision")
}
Expand Down

0 comments on commit 2f5e5bb

Please sign in to comment.