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

Commit

Permalink
Merge pull request #23 from paulbouwer/master
Browse files Browse the repository at this point in the history
Updated version to 0.3.4 and modified installer paths to new repo.
  • Loading branch information
paulbouwer committed Jan 5, 2015
2 parents 85280db + 8ae8489 commit eab00bb
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.3.3-blue.svg?style=flat-square)](https://github.com/paulbouwer/scriptcs-svm/releases/tag/v0.3.3)
[![Latest Release](http://img.shields.io/badge/svm-0.3.4-blue.svg?style=flat-square)](https://github.com/scriptcs-contrib/svm/releases/tag/v0.3.4)

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 @@ -18,7 +18,7 @@ svm is a cross platform version manager for [scriptcs](http://scriptcs.net/ "scr
```
> svm list
scriptcs version manager - 0.3.3
scriptcs version manager - 0.3.4
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 @@ -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, 'scriptcs-svm-0.3.3', 'src', 'bin')
$zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'scriptcs-svm-0.3.4', 'src', 'bin')
Remove-Item -Path $([System.IO.Path]::Combine($zipFolderToExtract, 'svm'))
Copy-Item -Path $zipFolderToExtract -Recurse -Destination $installPath
$zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'scriptcs-svm-0.3.3', 'src', 'shims')
$zipFolderToExtract = [System.IO.Path]::Combine($unzipFolder, 'scriptcs-svm-0.3.4', 'src', 'shims')
Remove-Item -Path $([System.IO.Path]::Combine($zipFolderToExtract, 'scriptcs'))
Copy-Item -Path $zipFolderToExtract -Recurse -Destination $installPath

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

$installPath = $userSvmPath
$url = "https://github.com/paulbouwer/scriptcs-svm/archive/v0.3.3.zip"
$url = "https://github.com/scriptcs-contrib/svm/archive/v0.3.4.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 @@ -56,8 +56,8 @@ _svminstaller_install_package() {

_svm_info_message "Installing svm to '$install_path'."

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

# remove Windows specific resources from installed package
Expand Down Expand Up @@ -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/paulbouwer/scriptcs-svm/archive/v0.3.3.zip"
svm_package_url="https://github.com/scriptcs-contrib/svm/archive/v0.3.4.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.3.3"
SVM_VERSION="0.3.4"

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.3.3"
$svmVersion = "0.3.4"

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

0 comments on commit eab00bb

Please sign in to comment.