Skip to content

Commit b544276

Browse files
committed
Fix package versioning in non AppVeyor environment.
1 parent aee8043 commit b544276

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/SetBuildEnv.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if ( $env:APPVEYOR_REPO_TAG -ne "True" )
77
{
88
$now = [DateTime]::UtcNow
99
$daysSpan = $now - ( New-Object DateTime( $now.Year, 1, 1 ) )
10-
$env:PackageVersion = "${version}-{0:yy}{1:000}" -f @( $now, $daysSpan.Days )
10+
$env:PackageVersion = "${version}-{0:yy}{1:000}-{2:000}" -f @( $now, $daysSpan.Days, ( $now.TimeOfDay.TotalMinutes / 2 ) )
1111
}
1212
elseif ( ${version} -match "^[\d.]+$" )
1313
{

0 commit comments

Comments
 (0)