Skip to content

Commit

Permalink
AU: 1 updated - boxcli
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey committed May 15, 2018
1 parent 43b563f commit 63bf94d
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 20 deletions.
3 changes: 2 additions & 1 deletion automatic/boxcli/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# ![Box CLI Changelog](https://img.shields.io/badge/Box%20CLI-Package%20Changelog-blue.svg?style=for-the-badge)

## UPCOMING
## Version: 1.2.0 (2018-05-15)
- Taken over as a new maintainer of the boxcli package (original maintainer: DemonDante)

2 changes: 1 addition & 1 deletion automatic/boxcli/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [<img src="https://cdn.rawgit.com/AdmiringWorm/chocolatey-packages/adcaa3c1faa9a2fb90010fa95bb26745ddc55072/icons/boxcli.png" height="48" width="48" /> ![box Command line interface](https://img.shields.io/chocolatey/v/boxcli.svg?label=box%20Command%20line%20interface&style=for-the-badge)](https://chocolatey.org/packages/boxcli)
# [<img src="https://cdn.rawgit.com/AdmiringWorm/chocolatey-packages/19c4e51a2be54f917c2c61d69d806a3e647d49f4/icons/boxcli.png" height="48" width="48" /> ![box Command line interface](https://img.shields.io/chocolatey/v/boxcli.svg?label=box%20Command%20line%20interface&style=for-the-badge)](https://chocolatey.org/packages/boxcli)

Cloud Content Management APIs for developers
Box is a cloud-based enterprise content management platform trusted by thousands of businesses around the world to securely store and manage their business content. Using our APIs, developers can manage and interact with files stored in Box and use Box as a content management layer in their applications.
Expand Down
4 changes: 3 additions & 1 deletion automatic/boxcli/boxcli.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"1.2": "1.2.0"
}
18 changes: 11 additions & 7 deletions automatic/boxcli/boxcli.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>boxcli</id>
<version>1.1.1</version>
<version>1.2.0</version>
<packageSourceUrl>https://github.com/AdmiringWorm/chocolatey-packages/tree/master/automatic/boxcli</packageSourceUrl>
<owners>AdmiringWorm, William Higgs</owners>
<title>Box CLI</title>
<authors>Box</authors>
<projectUrl>https://developer.box.com/</projectUrl>
<iconUrl>https://cdn.rawgit.com/AdmiringWorm/chocolatey-packages/adcaa3c1faa9a2fb90010fa95bb26745ddc55072/icons/boxcli.png</iconUrl>
<iconUrl>https://cdn.rawgit.com/AdmiringWorm/chocolatey-packages/19c4e51a2be54f917c2c61d69d806a3e647d49f4/icons/boxcli.png</iconUrl>
<copyright>©2018 Box</copyright>
<licenseUrl>https://github.com/box/boxcli/blob/master/LICENSE</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand All @@ -20,11 +20,15 @@
<tags>boxcli box commandline foss cross-platform</tags>
<summary>A command line interface to interact with the Box api</summary>
<!-- Do not touch the description here in the nuspec file. Description is imported during update from the Readme.md file -->
<description>A command line interface to interact with the box api</description>
<releaseNotes>
[Software Changelog](__REPLACE_OR_REMOVE__Markdown_Okay__May_Be_A_URL)
[Package Changelog](https://github.com/AdmiringWorm/chocolatey-packages/blob/master/automatic/boxcli/Changelog.md)
</releaseNotes>
<description><![CDATA[Cloud Content Management APIs for developers
Box is a cloud-based enterprise content management platform trusted by thousands of businesses around the world to securely store and manage their business content. Using our APIs, developers can manage and interact with files stored in Box and use Box as a content management layer in their applications.
- **Build a Custom Application**: Use the Box Platform APIs to bring secure content management and collaboration features to your application, using the same technology powering Box.
- **Build a Custom Integration**: Use the Box Platform APIs to connect an application with Box to upload, access and manage content in Box — just for your business.
- **Build a Partner Integration**: Use the Box Platform APIs to connect an application with Box and publish to the [Box App Gallery](https://cloud.app.box.com/apps) for millions of users to discover and use.
]]></description>
<releaseNotes>[Software Changelog](https://github.com/box/boxcli/releases/tag/v1.2.0)
[Package Changelog](https://github.com/AdmiringWorm/chocolatey-packages/blob/master/automatic/boxcli/Changelog.md)</releaseNotes>
<dependencies>
<dependency id="chocolatey-core.extension" version="1.3.3" />
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions automatic/boxcli/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ The embedded software have been downloaded from the listed download
location on <https://github.com/box/boxcli/releases>
and can be verified by doing the following:

1. Download the following <>
1. Download the following <https://github.com/box/boxcli/releases/download/v1.2.0/BoxCLI-win10-x64.msi>
2. Get the checksum using one of the following methods:
- Using powershell function 'Get-FileHash'
- Use chocolatey utility 'checksum.exe'
3. The checksums should match the following:

checksum type:
checksum:
checksum type: sha256
checksum: D03F75D4AE23D087EA454F18AFB7E0E21323EA0E3BEC978E54B07BF28ABFF730

The file 'LICENSE.txt' has been obtained from <https://github.com/box/boxcli/blob/066158db5c7a357b2ea513e36c3e845226133a7b/LICENSE>
8 changes: 4 additions & 4 deletions automatic/boxcli/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$ErrorActionPreference = 'Stop'

if ((Get-ProcessorBits -Compare 32) -or ($env:ChocolateyForceX86 -eq $true)) {
if ((Get-OSArchitectureWidth -Compare 32) -or ($env:ChocolateyForceX86 -eq $true)) {
throw "The software for this package does not support 32bit OS..."
}

Expand All @@ -9,12 +9,12 @@ $toolsPath = Split-Path -parent $MyInvocation.MyCommand.Definition
$packageArgs = @{
packageName = $env:ChocolateyPackageName
fileType = 'msi'
file = "$toolsPath\"
softwareName = 'boxcli*'
file = "$toolsPath\BoxCLI-win10-x64.msi"
softwareName = 'BoxCLI'
silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($env:chocolateyPackageName).$($env:chocolateyPackageVersion).MsiInstall.log`""
validExitCodes = @(0, 2010, 1641)
}

Install-ChocolateyInstallPackage @packageArgs

ls $toolsPath\*.msi | % { rm $_ -ea 0; if (Test-Path $_) { sc "$_.ignore" } }
Get-ChildItem $toolsPath\*.msi | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { Set-Content "$_.ignore" } }
6 changes: 3 additions & 3 deletions automatic/boxcli/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$packageArgs = @{
packageName = $env:ChocolateyPackageName
softwareName = 'boxcli*'
softwareName = 'BoxCLI'
fileType = 'msi'
silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($env:chocolateyPackageName).$($env:chocolateyPackageVersion).MsiUninstall.log`""
validExitCodes = @(0, 2010, 1641)
Expand All @@ -13,7 +13,7 @@ $uninstalled = $false
[array]$key = Get-UninstallRegistryKey @packageArgs

if ($key.Count -eq 1) {
$key | % {
$key | ForEach-Object {
$packageArgs['silentArgs'] = "$($_.PSChildName) $($packageArgs['silentArgs'])"
$packageArgs['file'] = ''

Expand All @@ -27,5 +27,5 @@ elseif ($key.Count -gt 1) {
Write-Warning "$($key.Count) matches found!"
Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
Write-Warning "Please alert the package maintainer that the following keys were matched:"
$key | % { Write-Warning "- $($_.DisplayName)" }
$key | ForEach-Object { Write-Warning "- $($_.DisplayName)" }
}

0 comments on commit 63bf94d

Please sign in to comment.