-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from cmarcusreid/chocolatey
Create basic chocolatey package.
- Loading branch information
Showing
4 changed files
with
47 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/bin/ | ||
/bin/ | ||
*.nupkg |
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,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> |
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,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 |
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,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 | ||
|