diff --git a/automatic/optipng/legal/VERIFICATION.txt b/automatic/optipng/legal/VERIFICATION.txt index 117382bd139..f0ee0e22f79 100644 --- a/automatic/optipng/legal/VERIFICATION.txt +++ b/automatic/optipng/legal/VERIFICATION.txt @@ -6,13 +6,13 @@ The embedded software have been downloaded from the listed download location on and can be verified by doing the following: -1. Download the following +1. Download the following 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: sha256 - checksum: 287700CF86BB0B1B4C2BE54F98F3EBFA121FD47FB38C97CD310A212CB6D441D9 + checksum: 36587548648F75E92A317F052E83A8A55281D6B415BBF373106736BC2F50A730 The file 'LICENSE.txt' has been obtained from diff --git a/automatic/optipng/optipng.nuspec b/automatic/optipng/optipng.nuspec index e5bf59e5d8f..f29faa22848 100644 --- a/automatic/optipng/optipng.nuspec +++ b/automatic/optipng/optipng.nuspec @@ -3,8 +3,8 @@ OptiPNG - 0.7.7 - https://github.com/chocolatey/chocolatey-coreteampackages/tree/master/automatic/optipng + 0.7.8 + https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/optipng OptiPNG: Advanced PNG Optimizer Cosmin Truta chocolatey-community, ferventcoder diff --git a/automatic/optipng/update.ps1 b/automatic/optipng/update.ps1 index 0625639de3a..c3e0f5de783 100644 --- a/automatic/optipng/update.ps1 +++ b/automatic/optipng/update.ps1 @@ -26,10 +26,10 @@ function global:au_GetLatest { $download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing $re = 'win32\.zip[\?\/]download$' - $url32 = $download_page.Links | ? href -match $re | select -first 1 -expand href + $url32 = $download_page.Links | Where-Object href -match $re | Select-Object -first 1 -expand href $verRe = '\-' - $version32 = $url32 -split "$verRe" | select -last 1 -skip 1 + $version32 = $url32 -split "$verRe" | Select-Object -last 1 -skip 1 @{ URL32 = $url32 Version = $version32