From bb2e5986fd8b6cef568a62e6d3aba4eac35fcec0 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 25 Mar 2024 10:52:23 +0000 Subject: [PATCH] Added sketchup to download and update hash check --- setupTmp.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setupTmp.ps1 b/setupTmp.ps1 index 9f38dc2..b0268ed 100644 --- a/setupTmp.ps1 +++ b/setupTmp.ps1 @@ -100,6 +100,11 @@ function DownloadFiles { FileName = "simulation.zip" Hash = "2327c15c390d53d4d5929a1a53acea566c8fba42" }, + @{ + Url = "https://git.justw.tf/Lightemerald/setup-script/raw/branch/main/Setup%20files/googlesketchupwen.exe" + FileName = "googlesketchupwen.exe" + Hash = "f0628e6f05241f91e4f36d6be3b8685a408ad12b" + }, @{ Url = "https://git.justw.tf/Lightemerald/setup-script/raw/branch/main/Setup%20files/RobotProg.zip" FileName = "RobotProg.zip" @@ -133,7 +138,7 @@ function DownloadFiles { if (-not (Test-Path -Path $filePath -PathType Leaf)) { Invoke-WebRequest -Uri $fileInfo.Url -OutFile $filePath } - if ((Get-FileHash -Path $filePath).Hash -ne $fileInfo.Hash) { + if ((Get-FileHash -Path $filePath -Algorithm SHA1).Hash -ne $fileInfo.Hash) { Invoke-WebRequest -Uri $fileInfo.Url -OutFile $filePath } }