Skip to content

Commit

Permalink
AU: 2 updated - dropbox vim
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey Community committed May 24, 2023
1 parent 74f1445 commit 5532a69
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion automatic/dropbox/dropbox.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"beta": "175.3.5368-beta",
"beta": "175.3.5528-beta",
"stable": "174.4.5852"
}
2 changes: 1 addition & 1 deletion automatic/dropbox/dropbox.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>dropbox</id>
<version>174.4.5852</version>
<version>175.3.5528-beta</version>
<title>Dropbox</title>
<authors>Dropbox</authors>
<owners>chocolatey-community,ferventcoder,the-running-dev</owners>
Expand Down
10 changes: 5 additions & 5 deletions automatic/dropbox/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (!$PSScriptRoot) {
}
. "$PSScriptRoot\helper.ps1"

$version = '174.4.5852'
$version = '175.3.5528'

if (!(IsVersionAlreadyInstalled $version)) {
$stop_dropbox = if (Get-Process -Name Dropbox -ErrorAction SilentlyContinue) { $false } else { $true }
Expand All @@ -13,10 +13,10 @@ if (!(IsVersionAlreadyInstalled $version)) {
$packageArgs = @{
packageName = $env:ChocolateyPackageName
softwareName = "Dropbox"
url = 'https://edge.dropboxstatic.com/dbx-releng/client/Dropbox%20174.4.5852%20Offline%20Installer.x86.exe'
url64 = 'https://edge.dropboxstatic.com/dbx-releng/client/Dropbox%20174.4.5852%20Offline%20Installer.x64.exe'
checksum = 'f430958749e48f8b8996b129a9208851236c7a4734beba23396f65947bd59634'
checksum64 = '68b09b3d5cc41ba4d5eb3b2a74a53020bf49894d6cc863964f8c57881200a568'
url = 'https://edge.dropboxstatic.com/dbx-releng/client/Dropbox%20175.3.5528%20Offline%20Installer.x86.exe'
url64 = 'https://edge.dropboxstatic.com/dbx-releng/client/Dropbox%20175.3.5528%20Offline%20Installer.x64.exe'
checksum = '69cfae425c5b33600f649ba88768594d8077974d0aebf0384ea4aa10b948adb1'
checksum64 = '6719ddfda3e79356f4606e947c784b02584a68075d459b8108041a340a5bd4d2'
fileType = 'exe'
checksumType = 'sha256'
checksumType64 = 'sha256'
Expand Down
4 changes: 2 additions & 2 deletions automatic/dropbox/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function GetDropbox {
$build = @{$true = '-beta'; $false = '' }[( $kind -match '-' )]
$oldversion = $nu_version -replace ($build, '')
$beta = drpbx-compare $oldversion -build ($build -replace ('-', ''))
$beta = Get-Version $beta | select -expand Version
$beta = Get-Version $beta | Select-Object -expand Version
# URL no longer valid as of 02/23/2018 $url = "https://dl-web.dropbox.com/u/17/Dropbox%20${beta}.exe"
$url32 = Get-RedirectedUrl "https://www.dropbox.com/download?build=${beta}&plat=win&type=full"
# Adding URL64 on 10/12/2022 due to it now being available
Expand All @@ -47,7 +47,7 @@ function GetDropbox {
}
}

$vers = Get-Version (( Get-RedirectedUrl 'https://www.dropbox.com/download?full=1&plat=win') -replace ('%20', '')) | select -expand Version
$vers = Get-Version (( Get-RedirectedUrl 'https://www.dropbox.com/download?full=1&plat=win') -replace ('%20', '')) | Select-Object -expand Version
$stable = -join ( $vers.Major, "." , $vers.Minor, "." , $vers.Build )

function global:au_GetLatest {
Expand Down
8 changes: 4 additions & 4 deletions automatic/dropbox/update_helper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function drpbx-compare {
}

$releases = 'https://www.dropboxforum.com/t5/Desktop-client-builds/bd-p/101003016'
$HTML = Invoke-WebRequest -UseBasicParsing -Uri $releases | % Links | where { $_ -match $build } | select -First 6 | Out-String
$HTML = Invoke-WebRequest -UseBasicParsing -Uri $releases | ForEach-Object Links | Where-Object { $_ -match $build } | Select-Object -First 6 | Out-String
$re_dash = '-'
$re_dot = '.'
$re_non = ''
Expand Down Expand Up @@ -43,11 +43,11 @@ function drpbx-builds {
$build += $G + ";"
}
}
if (($build | measure).Count -ge '6') {
$build = ($build | measure -Maximum).Maximum
if (($build | Measure-Object).Count -ge '6') {
$build = ($build | Measure-Object -Maximum).Maximum
break
}
}
}
return ($build | select -First 1)
return ($build | Select-Object -First 1)
}
8 changes: 4 additions & 4 deletions automatic/vim/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ in verifying that this package's contents are trustworthy.
The embedded software have been downloaded from GitHub and can be verified like this:

1. Download the following zips:
32-Bit: <https://github.com/vim/vim-win32-installer/releases/download/v9.0.1572/gvim_9.0.1572_x86.zip>
64-Bit: <https://github.com/vim/vim-win32-installer/releases/download/v9.0.1572/gvim_9.0.1572_x64.zip>
32-Bit: <https://github.com/vim/vim-win32-installer/releases/download/v9.0.1575/gvim_9.0.1575_x86.zip>
64-Bit: <https://github.com/vim/vim-win32-installer/releases/download/v9.0.1575/gvim_9.0.1575_x64.zip>
2. You can use one of the following methods to obtain the SHA256 checksum:
- Use powershell function 'Get-FileHash'
- Use Chocolatey utility 'checksum.exe'

checksum32: 277783CB098E3299A11093DE8E8DCB0ACDA03E3A1384C88040D5754150B019F2
checksum64: 6E01D9CD438AFB439994812600CC4BD5219F2A4885EAA66299093637467087F8
checksum32: CFE15334604C0F7FD5CA3E6CAA86AE4F36F2D878C66461BFD3AC621F1F1A11B2
checksum64: FF89FE3B348F5C0F69E6E886BFCC8E1C932FAB49218BA09F3CB7C8FE366F032E
4 changes: 2 additions & 2 deletions automatic/vim/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ $installDir = Get-InstallDir
$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $installDir
file = "$toolsDir\gvim_9.0.1572_x86.zip"
file64 = "$toolsDir\gvim_9.0.1572_x64.zip"
file = "$toolsDir\gvim_9.0.1575_x86.zip"
file64 = "$toolsDir\gvim_9.0.1575_x64.zip"
}

$installArgs = @{
Expand Down
6 changes: 3 additions & 3 deletions automatic/vim/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ function global:au_GetLatest {

$re = 'x86\.zip$'
$re64 = 'x64\.zip$'
$url = $download_page.links | ? href -match $re | select -First 1 -expand href
$url64 = $download_page.links | ? href -match $re64 | select -First 1 -expand href
$version = $url -split '/' | Select-Object -Last 1 -Skip 1 | % { $_.Trim('v') }
$url = $download_page.links | Where-Object href -match $re | Select-Object -First 1 -expand href
$url64 = $download_page.links | Where-Object href -match $re64 | Select-Object -First 1 -expand href
$version = $url -split '/' | Select-Object -Last 1 -Skip 1 | ForEach-Object { $_.Trim('v') }
$shortversion = $version.Split('.')[0] + $version.Split('.')[1]

@{
Expand Down
2 changes: 1 addition & 1 deletion automatic/vim/vim.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>vim</id>
<title>Vim</title>
<version>9.0.1572</version>
<version>9.0.1575</version>
<authors>Bram Moolenaar, Vim Community</authors>
<owners>chocolatey-community, Rob Reynolds</owners>
<summary>Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor 'Vi', with a more complete feature set. It's useful whether you're already using vi or using a different editor.</summary>
Expand Down

0 comments on commit 5532a69

Please sign in to comment.