Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Issue #69 - Release 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbouwer committed Mar 30, 2015
1 parent ba3dced commit ec8f836
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

scriptcs version manager

[![Latest Release](http://img.shields.io/badge/svm-0.4.0-blue.svg?style=flat-square)](https://github.com/scriptcs-contrib/svm/releases/tag/v0.4.0) [![Join the chat at https://gitter.im/scriptcs-contrib/svm](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg?style=flat-square)](https://gitter.im/scriptcs-contrib/svm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Latest Release](http://img.shields.io/badge/svm-0.4.1-blue.svg?style=flat-square)](https://github.com/scriptcs-contrib/svm/releases/tag/v0.4.1) [![Join the chat at https://gitter.im/scriptcs-contrib/svm](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg?style=flat-square)](https://gitter.im/scriptcs-contrib/svm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

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).

Expand All @@ -29,7 +29,7 @@ svm is a cross platform version manager for [scriptcs](http://scriptcs.net/ "scr
```
> svm list
scriptcs version manager - 0.4.0
scriptcs version manager - 0.4.1
The following scriptcs versions are installed:
Expand Down
6 changes: 3 additions & 3 deletions install/installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,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.4.0', 'src', 'bin')
$zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'svm-0.4.1', '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.4.0', 'src', 'shims')
$zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'svm-0.4.1', 'src', 'shims')
Remove-Item -Path $([System.IO.Path]::Combine($zipFolderToExtract, 'scriptcs'))
Copy-Item -Path $zipFolderToExtract -Recurse -Destination $installPath

Expand Down Expand Up @@ -123,7 +123,7 @@ function Configure-Environment
Write-TitleMessage "scriptcs version manager - installer"

$installPath = $userSvmPath
$url = "https://github.com/scriptcs-contrib/svm/archive/v0.4.0.zip"
$url = "https://github.com/scriptcs-contrib/svm/archive/v0.4.1.zip"
$downloadPath = [System.IO.Path]::Combine($env:TEMP, [Guid]::NewGuid(), 'svm-install.zip')

New-SvmInstallLocation $installPath
Expand Down
6 changes: 3 additions & 3 deletions install/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ _svminstaller_install_package() {

_svm_info_message "Installing svm to '$install_path'."

unzip -j "$download_path" "svm-0.4.0/src/bin/*" -d "$install_path/bin" > /dev/null 2>&1
unzip -j "$download_path" "svm-0.4.0/src/shims/*" -d "$install_path/shims" > /dev/null 2>&1
unzip -j "$download_path" "svm-0.4.1/src/bin/*" -d "$install_path/bin" > /dev/null 2>&1
unzip -j "$download_path" "svm-0.4.1/src/shims/*" -d "$install_path/shims" > /dev/null 2>&1
mkdir "$install_path/versions" > /dev/null 2>&1

# remove Windows specific resources from installed package
Expand Down Expand Up @@ -140,7 +140,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.4.0.zip"
svm_package_url="https://github.com/scriptcs-contrib/svm/archive/v0.4.1.zip"
svm_download_path="$TEMP_PATH/`uuidgen`/svm-install.zip"

_svminstaller_create_install_location "$svm_install_path"
Expand Down
2 changes: 1 addition & 1 deletion src/bin/svm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#SVM_VERSION="{{VERSION}}"
SVM_VERSION="0.4.0"
SVM_VERSION="0.4.1"

SCRIPT_PATH="${BASH_SOURCE[0]%/*}" # /.svm/bin
SVM_PATH=${SCRIPT_PATH%/bin} # /.svm/
Expand Down
2 changes: 1 addition & 1 deletion src/bin/svm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ param (
)

#$svmVersion = "{{VERSION}}"
$svmVersion = "0.4.0"
$svmVersion = "0.4.1"

$scriptPath = [System.IO.Path]::GetDirectoryName($myInvocation.MyCommand.Definition) # \.svm\bin
$svmPath = [System.IO.Directory]::GetParent($scriptPath).FullName # \.svm\
Expand Down

0 comments on commit ec8f836

Please sign in to comment.