Skip to content

Commit

Permalink
AU: 1 updated - OptiPNG
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey Community committed Nov 4, 2023
1 parent c4b7ced commit 002a17b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions automatic/optipng/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 <http://optipng.sourceforge.net/>
and can be verified by doing the following:

1. Download the following <http://prdownloads.sourceforge.net/optipng/optipng-0.7.7-win32.zip?download>
1. Download the following <http://prdownloads.sourceforge.net/optipng/optipng-0.7.8-win32.zip?download>
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 <http://optipng.sourceforge.net/license.txt>
4 changes: 2 additions & 2 deletions automatic/optipng/optipng.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>OptiPNG</id>
<version>0.7.7</version>
<packageSourceUrl>https://github.com/chocolatey/chocolatey-coreteampackages/tree/master/automatic/optipng</packageSourceUrl>
<version>0.7.8</version>
<packageSourceUrl>https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/optipng</packageSourceUrl>
<title>OptiPNG: Advanced PNG Optimizer</title>
<authors>Cosmin Truta</authors>
<owners>chocolatey-community, ferventcoder</owners>
Expand Down
4 changes: 2 additions & 2 deletions automatic/optipng/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 002a17b

Please sign in to comment.