Skip to content

Commit 59a8727

Browse files
committed
add windows powershell script for env variable
1 parent 988556d commit 59a8727

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

share/packaging/win-env.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Get-ChildItem Env:
2-
$env:HASH = git log --max-count=1 --pretty=format:"%H"
3-
$env:MESSAGE = git log --max-count=1 --pretty=format:"%s"
4-
$env:BUILDTIME = [int][double]::Parse((Get-Date -UFormat %s))
1+
# $env:HASH = git log --max-count=1 --pretty=format:"%H"
2+
# $env:MESSAGE = git log --max-count=1 --pretty=format:"%s"
3+
$env:BUILDTIME = [int][double]::Parse((Get-Date -UFormat %s))
4+
Write-Host "##vso[task.setvariable variable=BUILDTIME]$Env:BUILDTIME"

0 commit comments

Comments
 (0)