Update publish.ps1

Some bug fixes to upload the bundle correctly to the blob storage.
This commit is contained in:
Sridhar Periyasamy 2016-02-10 16:41:15 -08:00
parent 41fd92222d
commit d18ff2f421

View file

@ -114,20 +114,20 @@ function UploadBinaries($zipFile)
return 0
}
function UploadInstallers($msiFile)
function UploadInstallers($installerFile)
{
$fileName = [System.IO.Path]::GetFileName($msiFile)
$msiBlob = "$env:CHANNEL/Installers/$env:DOTNET_CLI_VERSION/$fileName"
$fileName = [System.IO.Path]::GetFileName($installerFile)
$installerBlob = "$env:CHANNEL/Installers/$env:DOTNET_CLI_VERSION/$fileName"
if(-Not (UploadFile $msiBlob $msiFile))
if(-Not (UploadFile $installerBlob $installerFile))
{
return -1
}
Write-Host "Updating the latest dotnet installer for windows.."
$msiBlobLatest = "$env:CHANNEL/Installers/Latest/dotnet-win-x64.latest.msi"
$installerBlobLatest = "$env:CHANNEL/Installers/Latest/dotnet-win-x64.latest.exe"
if(-Not (UploadFile $msiBlobLatest $msiFile))
if(-Not (UploadFile $installerBlobLatest $installerFile))
{
return -1
}