⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh

Source: AspNet/kvm@c10520f43c
This commit is contained in:
ASP.NET Push Bot 2015-05-05 17:33:45 -07:00 committed by unknown
parent 8e7d4a957b
commit 4505f7333d
2 changed files with 11 additions and 8 deletions

View File

@ -67,7 +67,7 @@ function _WriteOut {
### Constants
$ProductVersion="1.0.0"
$BuildVersion="beta5-10374"
$BuildVersion="beta5-10375"
$Authors="Microsoft Open Technologies, Inc."
# If the Version hasn't been replaced...
@ -1148,12 +1148,15 @@ function dnvm-install {
Write-Progress -Activity "Installing runtime" "Unpacking runtime" -Id 1
Unpack-Package $DownloadFile $UnpackFolder
New-Item -Type Directory $RuntimeFolder -Force | Out-Null
_WriteOut "Installing to $RuntimeFolder"
_WriteDebug "Moving package contents to $RuntimeFolder"
Move-Item "$UnpackFolder\*" $RuntimeFolder
_WriteDebug "Cleaning temporary directory $UnpackFolder"
Remove-Item $UnpackFolder -Force | Out-Null
if(Test-Path $RuntimeFolder) {
# Ensure the runtime hasn't been installed in the time it took to download the package.
_WriteOut "'$runtimeFullName' is already installed."
}
else {
_WriteOut "Installing to $RuntimeFolder"
_WriteDebug "Moving package contents to $RuntimeFolder"
Move-Item $UnpackFolder $RuntimeFolder
}
dnvm-use $PackageVersion -Architecture:$Architecture -Runtime:$Runtime -Persistent:$Persistent

View File

@ -2,7 +2,7 @@
# Source this file from your .bash-profile or script to use
# "Constants"
_DNVM_BUILDNUMBER="beta5-10374"
_DNVM_BUILDNUMBER="beta5-10375"
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"