From 6868c150e30fe441aa3de60db290f057c2fa61a1 Mon Sep 17 00:00:00 2001 From: Tunisiano187 Date: Wed, 7 Aug 2024 15:06:37 +0200 Subject: [PATCH] update --- automatic/filejuggler/update.ps1 | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/automatic/filejuggler/update.ps1 b/automatic/filejuggler/update.ps1 index 13eee4957..20953b22d 100644 --- a/automatic/filejuggler/update.ps1 +++ b/automatic/filejuggler/update.ps1 @@ -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