new version handle logic

This commit is contained in:
David Refoua
2018-03-30 23:23:44 +04:30
parent 3965852c26
commit b36b8a4cb3
3 changed files with 45 additions and 7 deletions

View File

@ -48,7 +48,7 @@ $targets = @{
Delete-Existing "..\Version*"
Delete-Existing "..\build\*"
$version = Invoke-Expression "git describe --abbrev=0 --tags"
$version = Get-VersionStr
(New-Item -ItemType file "$cmderRoot\Version $version") | Out-Null
foreach ($t in $targets.GetEnumerator()) {