Skip to content

Commit

Permalink
Merge pull request #8 from cmarcusreid/chocolatey
Browse files Browse the repository at this point in the history
Create basic chocolatey package.
  • Loading branch information
cmarcusreid committed Sep 11, 2015
2 parents 42c857c + 74ac20b commit 9c87e38
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/bin/
/bin/
*.nupkg
23 changes: 23 additions & 0 deletions chocolatey/git-status-cache-posh-client.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>git-status-cache-posh-client</id>
<title>git-status-cache-posh-client</title>
<version>1.0.0</version>
<authors>Marcus Reid</authors>
<owners>Marcus Reid</owners>
<summary>git-status-cache-posh-client - PowerShell client for git-status-cache</summary>
<description>PowerShell client for retrieving git repository information from [git-status-cache](https://github.com/cmarcusreid/git-status-cache). Communicates with the cache process via named pipe.</description>
<projectUrl>https://github.com/cmarcusreid/git-status-cache-posh-client</projectUrl>
<projectSourceUrl>https://github.com/cmarcusreid/git-status-cache-posh-client</projectSourceUrl>
<bugTrackerUrl>https://github.com/cmarcusreid/git-status-cache-posh-client/issues</bugTrackerUrl>
<tags>git-status-cache-posh-client git-status-cache gitstatuscacheposhclient git gitstatuscache</tags>
<copyright>2015 Marcus Reid</copyright>
<licenseUrl>https://github.com/cmarcusreid/git-status-cache-posh-client/blob/master/LICENSE</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
11 changes: 11 additions & 0 deletions chocolatey/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$ErrorActionPreference = 'Stop'

$packageName = 'git-status-cache-posh-client'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://github.com/cmarcusreid/git-status-cache-posh-client/archive/v1.0.0.zip'

Install-ChocolateyZipPackage $packageName $url $toolsDir

$subfolder = get-childitem $toolsDir -recurse -include 'git-status-cache-posh-client-1.0.0' | select -First 1
$installer = Join-Path $subfolder 'install.ps1'
& $installer
11 changes: 11 additions & 0 deletions chocolatey/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$ErrorActionPreference = 'Stop'

$packageName = 'git-status-cache-posh-client'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$subfolder = get-childitem $toolsDir -recurse -include 'git-status-cache-posh-client-1.0.0' | select -First 1
$uninstaller = Join-Path $subfolder 'uninstall.ps1'
& $uninstaller

Uninstall-ChocolateyZipPackage -PackageName $packageName -ZipFileName $packageName

0 comments on commit 9c87e38

Please sign in to comment.