Skip to content

Commit 8fecb98

Browse files
authored
fix: dev version calculation
1 parent ca256d5 commit 8fecb98

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

devVersion.ps1

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
$latestTag = git describe --tags --abbrev=0
2+
3+
# Remove the leading 'v' character if present
4+
if ($latestTag.StartsWith("v")) {
5+
$latestTag = $latestTag.Substring(1)
6+
}
7+
28
# Split the version string into major, minor, build, and revision components
39
$versionParts = $latestTag.Split('.')
410
$major = $versionParts[0]

0 commit comments

Comments
 (0)