Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Aug 7, 2024
1 parent 181a535 commit 6868c15
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions automatic/filejuggler/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,10 @@ function global:au_AfterUpdate($Package) {

function global:au_GetLatest {
choco update -y autohotkey
Write-Output 'Check Folder'
$File = "$($env:Temp)\Filejuggler.exe"
Write-Output 'Download'
Invoke-WebRequest -Uri $release -OutFile $File
[version]$version=[System.Diagnostics.FileVersionInfo]::GetVersionInfo($File).ProductVersion
Write-Output "Version : $version"
$url32 = $release
$Latest = @{ URL32 = $url32; Version = $version }
. ..\..\Scripts\Get-FileVersion.ps1
$FileInfos = Get-FileVersion -url $release
$Latest = @{ URL32 = $release; Checksum32 = $FileInfos.Checksum32; ChecksumType32 = $FileInfos.ChecksumType32; Version = $FileInfos.Version }
return $Latest
}

update -ChecksumFor 32
update -ChecksumFor none

0 comments on commit 6868c15

Please sign in to comment.