Skip to content

Commit

Permalink
AU: 2 updated - brave curl
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey Community committed May 30, 2023
1 parent d46a5de commit ba519cd
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion automatic/brave/brave.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"stable": "1.51.118",
"beta": "1.53.71-beta"
"beta": "1.53.74-beta"
}
2 changes: 1 addition & 1 deletion automatic/brave/brave.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>brave</id>
<version>1.53.71-beta</version>
<version>1.53.74-beta</version>
<title>Brave Browser (Beta)</title>
<description><![CDATA[Brave is a free and open-source web browser developed by Brave Software Inc. based on the Chromium web browser. Brave supports Windows, macOS, Linux and Android.
Expand Down
4 changes: 2 additions & 2 deletions automatic/brave/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ The installer has been downloaded from the GitHub mirror and can be verified lik

1. Download the following installer(s):

x86_64: https://github.com/brave/brave-browser/releases/download/v1.53.71/BraveBrowserStandaloneSilentBetaSetup.exe
x86_64: https://github.com/brave/brave-browser/releases/download/v1.53.74/BraveBrowserStandaloneSilentBetaSetup.exe

2. You can use one of the following methods to obtain the checksum(s):
- Use powershell function 'Get-Filehash'
- Use chocolatey utility 'checksum.exe'

checksum type: sha256
checksum64: 28B8D5A8174869E715F6E8F42BAB5B076D9499D97391B15DBEF65989F92FD501
checksum64: 5A01429D5DDC332C5B3577FE9CB041A6A3C28C2CBF6904958E70495C83A6D484

The included 'LICENSE.txt' file have been obtained from:
https://github.com/brave/brave-browser/blob/master/LICENSE
6 changes: 3 additions & 3 deletions automatic/brave/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

$packageArgs = @{
packageName = $env:ChocolateyPackageName
url = 'https://github.com/brave/brave-browser/releases/download/v1.53.71/BraveBrowserStandaloneSilentBetaSetup32.exe'
checksum = 'AF960F8ECB1DD75A920B0FF98B9BC1B965E18ABBAF8324D21207C1640272D281'
url = 'https://github.com/brave/brave-browser/releases/download/v1.53.74/BraveBrowserStandaloneSilentBetaSetup32.exe'
checksum = 'AD88E0AFE041BB424DFA33FE118C06D7DFA2C9E8CC3C00C40DAECC1C308E9354'
checksumType= 'sha256'
file64 = "$toolsPath\BraveBrowserStandaloneSilentBetaSetup.exe"
}

[version]$softwareVersion = '1.53.71'
[version]$softwareVersion = '1.53.74'

Write-Host "Checking already installed version..."
$installedVersion = Get-InstalledVersion
Expand Down
2 changes: 1 addition & 1 deletion automatic/curl/curl.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>curl</id>
<version>8.1.1</version>
<version>8.1.2</version>
<packageSourceUrl>https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/curl</packageSourceUrl>
<owners>chocolatey-community, Rob Reynolds</owners>
<title>cURL</title>
Expand Down
8 changes: 4 additions & 4 deletions automatic/curl/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ Package can be verified like this:

1. Go to https://curl.se/windows/, and look for the official binaries provided.

x32: https://curl.se/windows/dl-8.1.1_1/curl-8.1.1_1-win32-mingw.zip
x64: https://curl.se/windows/dl-8.1.1_1/curl-8.1.1_1-win64-mingw.zip
x32: https://curl.se/windows/dl-8.1.2_1/curl-8.1.2_1-win32-mingw.zip
x64: https://curl.se/windows/dl-8.1.2_1/curl-8.1.2_1-win64-mingw.zip

to download the zip files. You may wish to rename one of the files.

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: C6DCDD8DA874735CC3C702B187AA942313EE6F19F0B2AEF825D1E7AB301B04DB
checksum64: 138409FA9865109320FEB1AC1C50851F41547D45832033D0AAA165299C002D4C
checksum32: 7293B5E8D633ADA46473DBBC32BB56D3F5ABC3457AE0190EAF77475CDD014159
checksum64: 8DCC1755BCB02F57C870AD24BE7D0F83675599C6AEF0072FE290D1F125D49F2F

File 'LICENSE.txt' obtained from:
https://github.com/curl/curl/blob/835c2634212257d41c1a30c6cc0ad3ed60bb9aca/COPYING
4 changes: 2 additions & 2 deletions automatic/curl/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ $toolsPath = Split-Path $MyInvocation.MyCommand.Definition

$packageArgs = @{
PackageName = $env:chocolateyPackageName
FileFullPath = "$toolsPath\curl-8.1.1_1-win32-mingw.zip"
FileFullPath64 = "$toolsPath\curl-8.1.1_1-win64-mingw.zip"
FileFullPath = "$toolsPath\curl-8.1.2_1-win32-mingw.zip"
FileFullPath64 = "$toolsPath\curl-8.1.2_1-win64-mingw.zip"
Destination = $toolsPath
}

Expand Down
12 changes: 6 additions & 6 deletions automatic/curl/update.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import-module au
import-module au

[uri]$releases = 'https://curl.se/windows/'

Expand Down Expand Up @@ -34,14 +34,14 @@ function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

$re = '\.zip'
$url = $download_page.links | ? href -match $re | % { [uri]::new($releases, $_.href) }
$version = ($url[0] -split '/' | select -Last 1) -split '(_\d+)?-' | select -Index 1
$releaseNotes = $download_page.links | ? href -match "changes\.html" | select -first 1 -expand href
$url = $download_page.links | Where-Object href -match $re | ForEach-Object { [uri]::new($releases, $_.href) }
$version = ($url[0] -split '/' | Select-Object -Last 1) -split '(_\d+)?-' | Select-Object -Index 1
$releaseNotes = $download_page.links | Where-Object href -match "changes\.html" | Select-Object -first 1 -expand href

@{
Version = $version
URL32 = $url -match 'win32' | select -first 1
URL64 = $url | ? { $_ -notmatch 'win32' -and $_ -match $version } | select -first 1
URL32 = $url -match 'win32' | Select-Object -first 1
URL64 = $url | Where-Object { $_ -notmatch 'win32' -and $_ -match $version } | Select-Object -first 1
ReleaseNotes = $releaseNotes
}
}
Expand Down

0 comments on commit ba519cd

Please sign in to comment.