changeset 388:0a45b9debc30

Make sure zipfile is available
author Chris Cannam
date Mon, 08 Jun 2020 16:35:31 +0100
parents a2c5ca6b8785
children bfd36a0105bc
files deploy/win/zip.ps1
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/deploy/win/zip.ps1	Mon Jun 08 16:14:52 2020 +0100
+++ b/deploy/win/zip.ps1	Mon Jun 08 16:35:31 2020 +0100
@@ -2,6 +2,8 @@
 Set-StrictMode -Version 2.0
 $ErrorActionPreference = "Stop"
 
+Add-Type -assembly "system.io.compression.filesystem"
+
 if ($args.length -ne 2) {
     echo "Usage: zip target.zip sourcedir"
     exit 2
@@ -19,6 +21,6 @@
 }
 
 echo "Compressing from $source to $target..." | Out-Host
-
+ 
 [io.compression.zipfile]::CreateFromDirectory($source, $target)