diff --git a/README.md b/README.md index d2fea36..62fd3f7 100644 --- a/README.md +++ b/README.md @@ -2,23 +2,28 @@ scriptcs version manager -[![Latest Release](http://img.shields.io/badge/svm-0.3.5-blue.svg?style=flat-square)](https://github.com/scriptcs-contrib/svm/releases/tag/v0.3.5) +[![Latest Release](http://img.shields.io/badge/svm-0.3.6-blue.svg?style=flat-square)](https://github.com/scriptcs-contrib/svm/releases/tag/v0.3.6) svm is a cross platform version manager for [scriptcs](http://scriptcs.net/ "scriptcs makes it easy to write and execute C# with a simple text editor.") available on Windows, Mac OS X and Linux. This work and implementation was inspired by [rbenv](https://github.com/sstephenson/rbenv), [rvm](https://github.com/wayneeseguin/rvm), [kvm](https://github.com/aspnet/KRuntime/tree/dev/setup) and [nvm](https://github.com/creationix/nvm). **Install scriptcs version** + ``` > svm install 0.13.2 ``` + **Use scriptcs version** + ``` > svm use 0.13.2 ``` + **List installed scriptcs versions** + ``` > svm list - scriptcs version manager - 0.3.5 + scriptcs version manager - 0.3.6 The following scriptcs versions are installed: diff --git a/install/installer.ps1 b/install/installer.ps1 index 1f1d879..363eb07 100644 --- a/install/installer.ps1 +++ b/install/installer.ps1 @@ -75,10 +75,10 @@ function Install-SvmPackage $destination.CopyHere($zipFile.items(), 0x14) #0x4 = don't show UI, 0x10 = overwrite files # Only copy Windows specific contents into the install folder - $zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'svm-0.3.5', 'src', 'bin') + $zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'svm-0.3.6', 'src', 'bin') Remove-Item -Path $([System.IO.Path]::Combine($zipFolderToExtract, 'svm')) Copy-Item -Path $zipFolderToExtract -Recurse -Destination $installPath - $zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'svm-0.3.5', 'src', 'shims') + $zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'svm-0.3.6', 'src', 'shims') Remove-Item -Path $([System.IO.Path]::Combine($zipFolderToExtract, 'scriptcs')) Copy-Item -Path $zipFolderToExtract -Recurse -Destination $installPath @@ -119,7 +119,7 @@ function Configure-Environment Write-TitleMessage "scriptcs version manager - installer" $installPath = $userSvmPath -$url = "https://github.com/scriptcs-contrib/svm/archive/v0.3.5.zip" +$url = "https://github.com/scriptcs-contrib/svm/archive/v0.3.6.zip" $downloadPath = [System.IO.Path]::Combine($env:TEMP, [Guid]::NewGuid(), 'svm-install.zip') New-SvmInstallLocation $installPath diff --git a/install/installer.sh b/install/installer.sh index ebcd42f..76e36ea 100644 --- a/install/installer.sh +++ b/install/installer.sh @@ -56,8 +56,8 @@ _svminstaller_install_package() { _svm_info_message "Installing svm to '$install_path'." - unzip -j "$download_path" "svm-0.3.5/src/bin/*" -d "$install_path/bin" > /dev/null 2>&1 - unzip -j "$download_path" "svm-0.3.5/src/shims/*" -d "$install_path/shims" > /dev/null 2>&1 + unzip -j "$download_path" "svm-0.3.6/src/bin/*" -d "$install_path/bin" > /dev/null 2>&1 + unzip -j "$download_path" "svm-0.3.6/src/shims/*" -d "$install_path/shims" > /dev/null 2>&1 mkdir "$install_path/versions" # remove Windows specific resources from installed package @@ -136,7 +136,7 @@ _svminstaller_configure_environment() { _svm_title_message "scriptcs version manager - installer" svm_install_path="$USER_SVM_PATH" -svm_package_url="https://github.com/scriptcs-contrib/svm/archive/v0.3.5.zip" +svm_package_url="https://github.com/scriptcs-contrib/svm/archive/v0.3.6.zip" svm_download_path="$TEMP_PATH/`uuidgen`/svm-install.zip" _svminstaller_create_install_location "$svm_install_path" diff --git a/src/bin/svm b/src/bin/svm index fe51c69..6ef22dd 100644 --- a/src/bin/svm +++ b/src/bin/svm @@ -1,7 +1,7 @@ #!/bin/bash #SVM_VERSION="{{VERSION}}" -SVM_VERSION="0.3.5" +SVM_VERSION="0.3.6" SCRIPT_PATH="${BASH_SOURCE[0]%/*}" # /.svm/bin SVM_PATH=${SCRIPT_PATH%/bin} # /.svm/ diff --git a/src/bin/svm.ps1 b/src/bin/svm.ps1 index ff6d667..a3d9606 100644 --- a/src/bin/svm.ps1 +++ b/src/bin/svm.ps1 @@ -10,7 +10,7 @@ param ( ) #$svmVersion = "{{VERSION}}" -$svmVersion = "0.3.5" +$svmVersion = "0.3.6" $scriptPath = [System.IO.Path]::GetDirectoryName($myInvocation.MyCommand.Definition) # \.svm\bin $svmPath = [System.IO.Directory]::GetParent($scriptPath).FullName # \.svm\