Skip to content

Commit

Permalink
AU: 1 updated - owncloud-client
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey committed Jul 4, 2018
1 parent e8bc058 commit 1cc739d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions automatic/owncloud-client/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://owncloud.org/download/#install-clients>
and can be verified by doing the following:

1. Download the following <>
1. Download the following <https://download.owncloud.com/desktop/testing/ownCloud-2.5.0.9736alpha1-setup.exe>
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: 77359815FEC7AC0008008C74E70A244A2555AE41EBEFBD5388A9B3D753984BF6

The file 'LICENSE.txt' has been obtained from <https://github.com/owncloud/client/blob/06936bc603c91b1c5f10442901bcfeb765b17243/COPYING>
6 changes: 3 additions & 3 deletions automatic/owncloud-client/owncloud-client.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"stable": "2.4.1.9270",
"testing": "0.0"
{
"stable": "2.4.1.9270",
"testing": "2.5.0.9736-alpha1"
}
4 changes: 2 additions & 2 deletions automatic/owncloud-client/owncloud-client.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>owncloud-client</id>
<version>2.4.1.9270</version>
<title>ownCloud Windows Client</title>
<version>2.5.0.9736-alpha1</version>
<title>ownCloud Windows Client (Technical Preview)</title>
<owners>chocolatey</owners>
<authors>ownCloud developers</authors>
<licenseUrl>https://github.com/owncloud/client/blob/master/COPYING</licenseUrl>
Expand Down
6 changes: 3 additions & 3 deletions automatic/owncloud-client/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ $toolsPath = Split-Path -parent $MyInvocation.MyCommand.Definition
$packageArgs = @{
packageName = $env:ChocolateyPackageName
fileType = 'exe'
file = "$toolsPath\"
softwareName = 'owncloud-client*'
file = "$toolsPath\ownCloud-2.5.0.9736alpha1-setup.exe"
softwareName = 'ownCloud'
silentArgs = '/S'
validExitCodes = @(0)
}

Install-ChocolateyInstallPackage @packageArgs

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

$packageArgs = @{
packageName = $env:ChocolateyPackageName
softwareName = 'owncloud-client*'
softwareName = 'ownCloud'
fileType = 'exe'
silentArgs = '/S'
validExitCodes = @(0)
Expand All @@ -13,7 +13,7 @@ $uninstalled = $false
[array]$key = Get-UninstallRegistryKey @packageArgs

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

Uninstall-ChocolateyPackage @packageArgs
Expand All @@ -26,5 +26,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 1cc739d

Please sign in to comment.