Skip to content

Commit

Permalink
AU: 3 updated - autohotkey.portable chromium vscode-insiders
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey Community committed Jun 19, 2023
1 parent 372fbcf commit e7e0a61
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion automatic/autohotkey.portable/autohotkey.portable.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"1.1": "1.1.36.02",
"2.0": "2.0.2"
"2.0": "2.0.3"
}
2 changes: 1 addition & 1 deletion automatic/autohotkey.portable/autohotkey.portable.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>autohotkey.portable</id>
<version>2.0.2</version>
<version>2.0.3</version>
<title>AutoHotkey (Portable)</title>
<owners>chocolatey-community</owners>
<authors>Lexikos</authors>
Expand Down
10 changes: 5 additions & 5 deletions automatic/autohotkey.portable/tools/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ Package can be verified like this:

1. Go to

x32: https://autohotkey.com/download/2.0//AutoHotkey_2.0.2.zip
x64: https://autohotkey.com/download/2.0//AutoHotkey_2.0.2.zip
x32: https://autohotkey.com/download/2.0//AutoHotkey_2.0.3.zip
x64: https://autohotkey.com/download/2.0//AutoHotkey_2.0.3.zip

to download the installer.

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: 8F28C38A0B2AF6AC96C4A7E1A2C0F296B2410F845D9ACA8487843A1EDAC4271D
checksum64: 8F28C38A0B2AF6AC96C4A7E1A2C0F296B2410F845D9ACA8487843A1EDAC4271D
checksum32: 2F0C37C4E38EB50F7B40DEAB672F724EA4E3EDBEA0384406A3778B867CDA5DA9
checksum64: 2F0C37C4E38EB50F7B40DEAB672F724EA4E3EDBEA0384406A3778B867CDA5DA9

Using AU:

Get-RemoteChecksum https://autohotkey.com/download/2.0//AutoHotkey_2.0.2.zip
Get-RemoteChecksum https://autohotkey.com/download/2.0//AutoHotkey_2.0.3.zip

File 'license.txt' is obtained from:
https://github.com/AutoHotkey/AutoHotkey/blob/df84a3e902b522db0756a7366bd9884c80fa17b6/license.txt
2 changes: 1 addition & 1 deletion automatic/autohotkey.portable/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$ErrorActionPreference = 'Stop'

$fileName = 'AutoHotkey_2.0.2.zip'
$fileName = 'AutoHotkey_2.0.3.zip'
$toolsPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
$zip_path = "$toolsPath\$fileName"
Remove-Item $toolsPath\* -Recurse -Force -Exclude $fileName
Expand Down
16 changes: 8 additions & 8 deletions automatic/autohotkey.portable/update.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import-module au
import-module au

$releases = 'https://autohotkey.com/download'

Expand All @@ -19,34 +19,34 @@ function global:au_SearchReplace {
}
}
function global:au_BeforeUpdate {
rm "$PSScriptRoot\tools\*.zip"
Remove-Item "$PSScriptRoot\tools\*.zip"
$filePath = "$PSScriptRoot\tools\$($Latest.FileName)"
Invoke-WebRequest $Latest.URL -OutFile $filePath -UseBasicParsing
$Latest.ChecksumType = 'sha256'
$Latest.Checksum = Get-FileHash -Algorithm $Latest.ChecksumType -Path $filePath | % Hash
$Latest.Checksum = Get-FileHash -Algorithm $Latest.ChecksumType -Path $filePath | ForEach-Object Hash
}

function global:au_GetLatest {
$version_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

$urls = $version_page.Links | ? href -match "^[\d\.]+\/$" | ? href -NotMatch "1\.0" | % href
$urls = $version_page.Links | Where-Object href -match "^[\d\.]+\/$" | Where-Object href -NotMatch "1\.0" | ForEach-Object href

$streams = @{}
$urls | % {
$urls | ForEach-Object {
$releasesUrl = "$releases/$_"
$versionWithHash = Invoke-WebRequest -Uri "$releasesUrl/version.txt" -UseBasicParsing | % Content
$versionWithHash = Invoke-WebRequest -Uri "$releasesUrl/version.txt" -UseBasicParsing | ForEach-Object Content
$version = $versionWithHash -replace '(\d+.\d+-\w+)-\w+', '$1'
$version = $version -replace '(-\w+)\.', '$1'
if (!$version) { $version = $versionWithHash }

$url = "$releasesUrl/AutoHotkey_${versionWithHash}.zip"

$key = $releasesUrl -split '\/' | select -last 1 -Skip 1
$key = $releasesUrl -split '\/' | Select-Object -last 1 -Skip 1
if (!$streams.ContainsKey($key)) {
$streams.Add($key, @{
Version = $version
URL = $url
FileName = $url -split '/' | select -Last 1
FileName = $url -split '/' | Select-Object -Last 1
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion automatic/chromium/chromium.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"snapshots": "116.0.5841.0-snapshots",
"snapshots": "116.0.5842.0-snapshots",
"stable": "114.0.5735.134"
}
2 changes: 1 addition & 1 deletion automatic/chromium/chromium.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>chromium</id>
<version>116.0.5841.0-snapshots</version>
<version>116.0.5842.0-snapshots</version>
<title>Chromium Snapshots</title>
<owners>chocolatey-community</owners>
<authors>The Chromium Authors</authors>
Expand Down
8 changes: 4 additions & 4 deletions automatic/chromium/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ location on <https://github.com/henrypp/chromium/releases/> (the listed mirrors
and can be verified by doing the following:

1. Download the following:
32-Bit software: <https://storage.googleapis.com/chromium-browser-snapshots/Win/1159406/mini_installer.exe>
64-Bit software: <https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/1159410/mini_installer.exe>
32-Bit software: <https://storage.googleapis.com/chromium-browser-snapshots/Win/1159483/mini_installer.exe>
64-Bit software: <https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/1159491/mini_installer.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: sha256
checksum32: 39F60D79404B0FA15945A19BDEA4AE0403E1063FD4780AE9B1AB3335D54D2067
checksum64: 4BED34A797B55A3B3CC7E9EB24906BC38210A451E0651386ED20053BA24F7B14
checksum32: 16657697FBAE042E50C5632075C078751FA399464B8632AF1979992648FC4595
checksum64: 5B791C6A7103C20F437C5896EB5EB13BCD15598A0908F15B5F77644FD1624925

The file 'LICENSE.txt' has been obtained from <https://chromium.googlesource.com/chromium/src.git/+/master/LICENSE>
2 changes: 1 addition & 1 deletion automatic/chromium/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$scriptDir=$toolsDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
. (Join-Path $scriptDir 'helper.ps1')

$version = "116.0.5841.0-snapshots"
$version = "116.0.5842.0-snapshots"
$hive = "hkcu"
$chromium_string = "\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Chromium"
$Chromium = $hive + ":" + $chromium_string
Expand Down
4 changes: 2 additions & 2 deletions automatic/vscode-insiders/vscode-insiders.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<metadata>
<id>vscode-insiders</id>
<title>Visual Studio Code Insiders</title>
<version>1.80.0.20230616</version>
<version>1.80.0.20230619</version>
<authors>Microsoft</authors>
<owners>chocolatey-community</owners>
<projectUrl>https://code.visualstudio.com/insiders</projectUrl>
Expand Down Expand Up @@ -48,7 +48,7 @@ Example: `choco install vscode-insiders --params "/NoDesktopIcon /DontAddToPath"
]]></description>
<tags>microsoft visualstudiocode visualstudiocode-insiders vscode vscode-insiders development editor ide javascript typescript admin foss cross-platform</tags>
<dependencies>
<dependency id="vscode-insiders.install" version="[1.80.0.20230616]" />
<dependency id="vscode-insiders.install" version="[1.80.0.20230619]" />
</dependencies>
<releaseNotes>https://code.visualstudio.com/updates/#_preview-features</releaseNotes>
</metadata>
Expand Down

0 comments on commit e7e0a61

Please sign in to comment.