From 32f8cd51880b6320fb4c4345b2582695c9dd2b4a Mon Sep 17 00:00:00 2001 From: Logic Date: Wed, 23 Oct 2024 22:35:45 +0800 Subject: [PATCH] [improve] fix release script (#2781) --- script/release/release-win.ps1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/script/release/release-win.ps1 b/script/release/release-win.ps1 index 4c12615b79c..a0d68079bbd 100644 --- a/script/release/release-win.ps1 +++ b/script/release/release-win.ps1 @@ -15,8 +15,11 @@ $gpgKeyId = "********" +# ******************************************************** +# Set version and release candidate number $version = "1.6.1" $rcNumber = "rc1" +# ******************************************************** $scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path $projectPath = (Get-Item (Split-Path -Parent $scriptPath)).Parent.FullName @@ -42,13 +45,13 @@ yarn package Pop-Location Write-Host "Building project with Maven..." -mvn clean package -Prelease +mvn clean package -Prelease -DskipTests -mvn clean install +mvn clean install -DskipTests Write-Host "Building collector..." Push-Location -Path "collector" -mvn clean package -Pcluster +mvn clean package -Pcluster -DskipTests Pop-Location # package release artifacts @@ -65,7 +68,7 @@ Get-ChildItem *.tar.gz | ForEach-Object { Write-Host "Generating SHA512 for $fileName..." $hash = Get-FileHash -Path "$fileName" -Algorithm SHA512 $hashString = $hash.Hash - "$hashString $fileName" | Out-File "$fileName.sha512" -Append + "$hashString $fileName" | Out-File "$fileName.sha512" -Append -NoNewline } Pop-Location