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 } }