-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3db5e7
commit fb8983f
Showing
3 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>nodist</id> | ||
<title>nodist</title> | ||
<version>0.3.12-beta</version> | ||
<authors>Marcel Klehr</authors> | ||
<owners>Marcel Klehr</owners> | ||
<summary>A Node.js version manager for Windows.</summary> | ||
<description>See github page https://github.com/marcelklehr/nodist for documentation.</description> | ||
<projectUrl>https://github.com/marcelklehr/nodist</projectUrl> | ||
<tags>node nodejs javascript admin nvm version management</tags> | ||
<copyright>2013</copyright> | ||
<licenseUrl>https://github.com/marcelklehr/nodist</licenseUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
</metadata> | ||
<files> | ||
<file src="tools\**" target="tools" /> | ||
<!--<file src="content\**" target="content" />--> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
$packageName = 'nodist' | ||
$url = 'https://github.com/marcelklehr/nodist/archive/master.zip' | ||
$unzipPath = $(Split-Path -parent $MyInvocation.MyCommand.Definition) | ||
|
||
try { | ||
|
||
Install-ChocolateyZipPackage $packageName $url $unzipPath | ||
$binPath = (resolve-path (join-path $unzipPath "nodist-master\bin")).ToString() | ||
|
||
"Installing nodist at $binPath" | write-host -fore green | ||
|
||
Install-ChocolateyPath $binPath 'Machine' | ||
|
||
"Running nodist update" | ||
$validExitCodes = @(0) | ||
Start-ChocolateyProcessAsAdmin "$(join-path $binPath "nodist.cmd") update" -validExitCodes $validExitCodes | ||
|
||
Write-ChocolateySuccess "$packageName" | ||
} catch { | ||
Write-ChocolateyFailure "$packageName" "$($_.Exception.Message)" | ||
throw | ||
} |
fb8983f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.