Skip to content

Commit

Permalink
AU: 3 updated - autohotkey autohotkey.install autohotkey.portable
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey Community committed Jul 2, 2023
1 parent d5993e5 commit 2f9f441
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion automatic/autohotkey.install/autohotkey.install.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.install</id>
<version>1.1.36.02</version>
<version>1.1.37.00</version>
<title>AutoHotkey (Install)</title>
<owners>chocolatey-community</owners>
<authors>Lexikos</authors>
Expand Down
10 changes: 5 additions & 5 deletions automatic/autohotkey.install/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://github.com/Lexikos/AutoHotkey_L/releases/download/v1.1.36.02/AutoHotkey_1.1.36.02_setup.exe
x64: https://github.com/Lexikos/AutoHotkey_L/releases/download/v1.1.36.02/AutoHotkey_1.1.36.02_setup.exe
x32: https://github.com/Lexikos/AutoHotkey_L/releases/download/v1.1.37.00/AutoHotkey_1.1.37.00_setup.exe
x64: https://github.com/Lexikos/AutoHotkey_L/releases/download/v1.1.37.00/AutoHotkey_1.1.37.00_setup.exe

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: AF7B8E60B4B54F5F85E6B207AC51926CB076AA4319B8E4C72E59B98C85818CAE
checksum64: AF7B8E60B4B54F5F85E6B207AC51926CB076AA4319B8E4C72E59B98C85818CAE
checksum32: E16E14A5902618298C24B6B6A2503D83D435BD647DCBDC2A20FA5F7285C57168
checksum64: E16E14A5902618298C24B6B6A2503D83D435BD647DCBDC2A20FA5F7285C57168

Using AU:

Get-RemoteChecksum https://github.com/Lexikos/AutoHotkey_L/releases/download/v1.1.36.02/AutoHotkey_1.1.36.02_setup.exe
Get-RemoteChecksum https://github.com/Lexikos/AutoHotkey_L/releases/download/v1.1.37.00/AutoHotkey_1.1.37.00_setup.exe

File 'license.txt' is obtained from:
https://github.com/AutoHotkey/AutoHotkey/blob/df84a3e902b522db0756a7366bd9884c80fa17b6/license.txt
10 changes: 5 additions & 5 deletions automatic/autohotkey.install/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/1.1'

Expand All @@ -20,24 +20,24 @@ function global:au_SearchReplace {
}

function global:au_BeforeUpdate {
rm "$PSScriptRoot\tools\*.exe"
Remove-Item "$PSScriptRoot\tools\*.exe"

$client = New-Object System.Net.WebClient
$filePath = "$PSScriptRoot\tools\$($Latest.FileName)"
$client.DownloadFile($Latest.URL, $filePath)
$client.Dispose()

$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 = Invoke-WebRequest -Uri "$releases\version.txt" -UseBasicParsing | % Content
$version = Invoke-WebRequest -Uri "$releases\version.txt" -UseBasicParsing | ForEach-Object Content
$url = "https://github.com/Lexikos/AutoHotkey_L/releases/download/v${version}/AutoHotkey_${version}_setup.exe"
@{
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/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",
"1.1": "1.1.37.00",
"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.3</version>
<version>1.1.37.00</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.3.zip
x64: https://autohotkey.com/download/2.0//AutoHotkey_2.0.3.zip
x32: https://autohotkey.com/download/1.1//AutoHotkey_1.1.37.00.zip
x64: https://autohotkey.com/download/1.1//AutoHotkey_1.1.37.00.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: 2F0C37C4E38EB50F7B40DEAB672F724EA4E3EDBEA0384406A3778B867CDA5DA9
checksum64: 2F0C37C4E38EB50F7B40DEAB672F724EA4E3EDBEA0384406A3778B867CDA5DA9
checksum32: BAF570165017DC37FB218FF5C1BE8F783BBBC0235A0A3065ECF6AE48D6070BB7
checksum64: BAF570165017DC37FB218FF5C1BE8F783BBBC0235A0A3065ECF6AE48D6070BB7

Using AU:

Get-RemoteChecksum https://autohotkey.com/download/2.0//AutoHotkey_2.0.3.zip
Get-RemoteChecksum https://autohotkey.com/download/1.1//AutoHotkey_1.1.37.00.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.3.zip'
$fileName = 'AutoHotkey_1.1.37.00.zip'
$toolsPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
$zip_path = "$toolsPath\$fileName"
Remove-Item $toolsPath\* -Recurse -Force -Exclude $fileName
Expand Down
4 changes: 2 additions & 2 deletions automatic/autohotkey/autohotkey.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</id>
<version>1.1.36.02</version>
<version>1.1.37.00</version>
<title>AutoHotkey</title>
<owners>chocolatey-community</owners>
<authors>Lexikos</authors>
Expand Down Expand Up @@ -37,7 +37,7 @@
<releaseNotes></releaseNotes>
<tags>automation hotkeys scripting windows foss admin</tags>
<dependencies>
<dependency id="autohotkey.install" version="1.1.36.02" />
<dependency id="autohotkey.install" version="1.1.37.00" />
</dependencies>
<packageSourceUrl>https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/autohotkey</packageSourceUrl>
<projectSourceUrl>https://github.com/Lexikos/AutoHotkey_L</projectSourceUrl>
Expand Down

0 comments on commit 2f9f441

Please sign in to comment.