parent
8e7d4a957b
commit
4505f7333d
17
dnvm.ps1
17
dnvm.ps1
|
|
@ -67,7 +67,7 @@ function _WriteOut {
|
||||||
|
|
||||||
### Constants
|
### Constants
|
||||||
$ProductVersion="1.0.0"
|
$ProductVersion="1.0.0"
|
||||||
$BuildVersion="beta5-10374"
|
$BuildVersion="beta5-10375"
|
||||||
$Authors="Microsoft Open Technologies, Inc."
|
$Authors="Microsoft Open Technologies, Inc."
|
||||||
|
|
||||||
# If the Version hasn't been replaced...
|
# If the Version hasn't been replaced...
|
||||||
|
|
@ -1148,12 +1148,15 @@ function dnvm-install {
|
||||||
Write-Progress -Activity "Installing runtime" "Unpacking runtime" -Id 1
|
Write-Progress -Activity "Installing runtime" "Unpacking runtime" -Id 1
|
||||||
Unpack-Package $DownloadFile $UnpackFolder
|
Unpack-Package $DownloadFile $UnpackFolder
|
||||||
|
|
||||||
New-Item -Type Directory $RuntimeFolder -Force | Out-Null
|
if(Test-Path $RuntimeFolder) {
|
||||||
_WriteOut "Installing to $RuntimeFolder"
|
# Ensure the runtime hasn't been installed in the time it took to download the package.
|
||||||
_WriteDebug "Moving package contents to $RuntimeFolder"
|
_WriteOut "'$runtimeFullName' is already installed."
|
||||||
Move-Item "$UnpackFolder\*" $RuntimeFolder
|
}
|
||||||
_WriteDebug "Cleaning temporary directory $UnpackFolder"
|
else {
|
||||||
Remove-Item $UnpackFolder -Force | Out-Null
|
_WriteOut "Installing to $RuntimeFolder"
|
||||||
|
_WriteDebug "Moving package contents to $RuntimeFolder"
|
||||||
|
Move-Item $UnpackFolder $RuntimeFolder
|
||||||
|
}
|
||||||
|
|
||||||
dnvm-use $PackageVersion -Architecture:$Architecture -Runtime:$Runtime -Persistent:$Persistent
|
dnvm-use $PackageVersion -Architecture:$Architecture -Runtime:$Runtime -Persistent:$Persistent
|
||||||
|
|
||||||
|
|
|
||||||
2
dnvm.sh
2
dnvm.sh
|
|
@ -2,7 +2,7 @@
|
||||||
# Source this file from your .bash-profile or script to use
|
# Source this file from your .bash-profile or script to use
|
||||||
|
|
||||||
# "Constants"
|
# "Constants"
|
||||||
_DNVM_BUILDNUMBER="beta5-10374"
|
_DNVM_BUILDNUMBER="beta5-10375"
|
||||||
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
|
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
|
||||||
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
|
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
|
||||||
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
|
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue