Skip to content

Commit

Permalink
my script
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Aug 21, 2024
1 parent cd6adfb commit f1fe1d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions automatic/minecraft-education/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ function global:au_AfterUpdate($Package) {
}

function global:au_GetLatest {
$File = Join-Path $env:TEMP "minecraft.exe"
Invoke-WebRequest -Uri $release -OutFile $File
$version=[System.Diagnostics.FileVersionInfo]::GetVersionInfo($File).FileVersion.trim()
. ..\..\scripts\Get-FileVersion.ps1
$FileVersion = Get-FileVersion -url $release

$Latest = @{ URL32 = $release; Version = $version }

$Latest = @{ URL32 = $release; Version = $FileVersion.Version; Checksum32 = $FileVersion.Checksum32; ChecksumType32 = $FileVersion.checksumType }
return $Latest
}

update -ChecksumFor 32 -NoCheckChocoVersion
update -ChecksumFor none

0 comments on commit f1fe1d1

Please sign in to comment.