From ff06751d859ca6fac108a4e5f4ebe73a35b2ee0b Mon Sep 17 00:00:00 2001 From: Markson Date: Thu, 10 Nov 2022 08:28:02 +0800 Subject: [PATCH] Try to fix version --- install/windows-inno/build-helper.ps1 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/install/windows-inno/build-helper.ps1 b/install/windows-inno/build-helper.ps1 index 618f5f5b..cb6f7ea4 100644 --- a/install/windows-inno/build-helper.ps1 +++ b/install/windows-inno/build-helper.ps1 @@ -42,16 +42,16 @@ Copy-Item -Path ./web ./service/server/router/ -Recurse New-Item -ItemType Directory -Path ./ -Name "v2raya-x86_64-windows"; New-Item -ItemType Directory -Path ".\v2raya-x86_64-windows\bin" New-Item -ItemType Directory -Path ./ -Name "v2raya-arm64-windows"; New-Item -ItemType Directory -Path ".\v2raya-arm64-windows\bin" -if ($REF -eq "refs/tags/v*") { - Write-Host $REF - $VERSION = (git describe --tags $(git rev-list --tags --max-count=1)).replace("v","") -}else { - $DateLong = git log -1 --format="%cd" --date=short - $Date = $DateLong -replace "-"; "" - $count = git rev-list --count HEAD - $commit = git rev-parse --short HEAD - $VERSION = "unstable-$date.r$count.$commit" -} +# if ($REF -eq "refs/tags/v*") { +# Write-Host $REF +# $VERSION = (git describe --tags $(git rev-list --tags --max-count=1)).replace("v","") +# }else { +# $DateLong = git log -1 --format="%cd" --date=short +# $Date = $DateLong -replace "-"; "" +# $count = git rev-list --count HEAD +# $commit = git rev-parse --short HEAD +# $VERSION = "unstable-$date.r$count.$commit" +# } Set-Location -Path ./service $env:CGO_ENABLED = "0"