From 6252fcb75ca13a927c912dde47766659fd9b30ae Mon Sep 17 00:00:00 2001 From: Marcus Reid Date: Tue, 8 Sep 2015 02:21:26 +0100 Subject: [PATCH 1/2] Create basic chocolatey package. --- .gitignore | 3 ++- .../git-status-cache-posh-client.nuspec | 23 +++++++++++++++++++ chocolatey/tools/chocolateyinstall.ps1 | 11 +++++++++ chocolatey/tools/chocolateyuninstall.ps1 | 11 +++++++++ 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 chocolatey/git-status-cache-posh-client.nuspec create mode 100644 chocolatey/tools/chocolateyinstall.ps1 create mode 100644 chocolatey/tools/chocolateyuninstall.ps1 diff --git a/.gitignore b/.gitignore index 65776c3..75325d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/bin/ \ No newline at end of file +/bin/ +*.nupkg \ No newline at end of file diff --git a/chocolatey/git-status-cache-posh-client.nuspec b/chocolatey/git-status-cache-posh-client.nuspec new file mode 100644 index 0000000..a00e56c --- /dev/null +++ b/chocolatey/git-status-cache-posh-client.nuspec @@ -0,0 +1,23 @@ + + + + + git-status-cache-posh-client + git-status-cache-posh-client + 1.0.0 + Marcus Reid + Marcus Reid + git-status-cache-posh-client - PowerShell client for git-status-cache + 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. + https://github.com/cmarcusreid/git-status-cache-posh-client + https://github.com/cmarcusreid/git-status-cache-posh-client + https://github.com/cmarcusreid/git-status-cache-posh-client/issues + git-status-cache-posh-client git-status-cache gitstatuscacheposhclient git gitstatuscache + 2015 Marcus Reid + https://github.com/cmarcusreid/git-status-cache-posh-client/blob/master/LICENSE + false + + + + + diff --git a/chocolatey/tools/chocolateyinstall.ps1 b/chocolatey/tools/chocolateyinstall.ps1 new file mode 100644 index 0000000..e9da3b1 --- /dev/null +++ b/chocolatey/tools/chocolateyinstall.ps1 @@ -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/v0.1.3.zip' + +Install-ChocolateyZipPackage $packageName $url $toolsDir + +$subfolder = get-childitem $toolsDir -recurse -include 'git-status-cache-posh-client-0.1.3' | select -First 1 +$installer = Join-Path $subfolder 'install.ps1' +& $installer \ No newline at end of file diff --git a/chocolatey/tools/chocolateyuninstall.ps1 b/chocolatey/tools/chocolateyuninstall.ps1 new file mode 100644 index 0000000..4518fb0 --- /dev/null +++ b/chocolatey/tools/chocolateyuninstall.ps1 @@ -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-0.1.3' | select -First 1 +$uninstaller = Join-Path $subfolder 'uninstall.ps1' +& $uninstaller + +Uninstall-ChocolateyZipPackage -PackageName $packageName -ZipFileName $packageName + From 74ac20b6fd5cd14113c791842f56d85919e7ae18 Mon Sep 17 00:00:00 2001 From: Marcus Reid Date: Fri, 11 Sep 2015 05:33:43 +0100 Subject: [PATCH 2/2] Set version number to 1.0.0. --- chocolatey/tools/chocolateyinstall.ps1 | 4 ++-- chocolatey/tools/chocolateyuninstall.ps1 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chocolatey/tools/chocolateyinstall.ps1 b/chocolatey/tools/chocolateyinstall.ps1 index e9da3b1..b686de6 100644 --- a/chocolatey/tools/chocolateyinstall.ps1 +++ b/chocolatey/tools/chocolateyinstall.ps1 @@ -2,10 +2,10 @@ $packageName = 'git-status-cache-posh-client' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" -$url = 'https://github.com/cmarcusreid/git-status-cache-posh-client/archive/v0.1.3.zip' +$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-0.1.3' | select -First 1 +$subfolder = get-childitem $toolsDir -recurse -include 'git-status-cache-posh-client-1.0.0' | select -First 1 $installer = Join-Path $subfolder 'install.ps1' & $installer \ No newline at end of file diff --git a/chocolatey/tools/chocolateyuninstall.ps1 b/chocolatey/tools/chocolateyuninstall.ps1 index 4518fb0..d985ba0 100644 --- a/chocolatey/tools/chocolateyuninstall.ps1 +++ b/chocolatey/tools/chocolateyuninstall.ps1 @@ -3,7 +3,7 @@ $packageName = 'git-status-cache-posh-client' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" -$subfolder = get-childitem $toolsDir -recurse -include 'git-status-cache-posh-client-0.1.3' | select -First 1 +$subfolder = get-childitem $toolsDir -recurse -include 'git-status-cache-posh-client-1.0.0' | select -First 1 $uninstaller = Join-Path $subfolder 'uninstall.ps1' & $uninstaller