From 5ef9e3bb53b78de3176785ce6ded21f1df2c6581 Mon Sep 17 00:00:00 2001 From: Kevin Woley Date: Tue, 28 Apr 2020 20:28:08 -0700 Subject: [PATCH] add 32-bit windows support to the install Closes #7 --- install.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index 53ddff4..aa8df60 100644 --- a/install.ps1 +++ b/install.ps1 @@ -3,7 +3,13 @@ # download restic if(-not (Test-Path $ResticExe)) { - $url = "https://github.com/restic/restic/releases/download/v0.9.6/restic_0.9.6_windows_amd64.zip" + $url = $null + if([Environment]::Is64BitOperatingSystem){ + $url = "https://github.com/restic/restic/releases/download/v0.9.6/restic_0.9.6_windows_amd64.zip" + } + else { + $url = "https://github.com/restic/restic/releases/download/v0.9.6/restic_0.9.6_windows_386.zip" + } $output = Join-Path $InstallPath "restic.zip" Invoke-WebRequest -Uri $url -OutFile $output Expand-Archive -LiteralPath $output $InstallPath