compatible the windows installation script for v1.7.0+ release (#1139)
* Don't merge, validate windows install script for v1.8.0-alpha.1 Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com> * fix windows install script Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com> * Fix: delete version in github action Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com> --------- Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com> Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com> Co-authored-by: FogDong <dongtianxin.tx@alibaba-inc.com>
This commit is contained in:
parent
786256294f
commit
e9165f4321
|
|
@ -12,7 +12,8 @@ $ErrorActionPreference = 'stop'
|
|||
$VelaRoot = $VelaRoot -replace ' ', '` '
|
||||
|
||||
# Constants
|
||||
$VelaCliBuildName = "vela"
|
||||
$VelaCliBuildNameLegacy = "vela"
|
||||
$VelaCliBuildName = "vela.exe"
|
||||
$VelaCliFileName = "vela.exe"
|
||||
$VelaCliFilePath = "${VelaRoot}\${VelaCliFileName}"
|
||||
$RemoteURL = "https://static.kubevela.net/binary/vela"
|
||||
|
|
@ -69,7 +70,10 @@ if (!(Test-Path $zipFilePath -PathType Leaf)) {
|
|||
# Extract KubeVela CLI to $VelaRoot
|
||||
Write-Output "Extracting $zipFilePath..."
|
||||
Microsoft.Powershell.Archive\Expand-Archive -Force -Path $zipFilePath -DestinationPath $VelaRoot
|
||||
$ExtractedVelaCliFilePath = "${VelaRoot}\${os_arch}\${VelaCliBuildName}"
|
||||
$ExtractedVelaCliFilePath = "${VelaRoot}\${os_arch}\${VelaCliBuildNameLegacy}"
|
||||
if (!(Test-Path $ExtractedVelaCliFilePath -PathType Leaf)) {
|
||||
$ExtractedVelaCliFilePath = "${VelaRoot}\${os_arch}\${VelaCliBuildName}"
|
||||
}
|
||||
Copy-Item $ExtractedVelaCliFilePath -Destination $VelaCliFilePath
|
||||
if (!(Test-Path $VelaCliFilePath -PathType Leaf)) {
|
||||
throw "Failed to extract Vela Cli archive - $zipFilePath"
|
||||
|
|
|
|||
Loading…
Reference in New Issue