Skip to content

Commit 2f5e5bb

Browse files
committed
fix getFullVersion for betas
1 parent a68b029 commit 2f5e5bb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

dist/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/installer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ async function getFullVersion(installPath: string) {
121121
"Pkg.Revision" in properties &&
122122
typeof properties["Pkg.Revision"] === "string"
123123
) {
124-
return properties["Pkg.Revision"]
124+
const [fullVersion] = properties["Pkg.Revision"].split("-")
125+
return fullVersion!
125126
} else {
126127
throw new Error("source.properties file is missing Pkg.Revision")
127128
}

0 commit comments

Comments
 (0)