From 834289efa1d0856281db03f17c354c6413d77c83 Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Wed, 7 Mar 2018 14:31:57 +0300 Subject: [PATCH] Fix example/uwp/build.ps1 GitOrigin-RevId: 264c603985c76e78d28261fe632c9c6924494632 --- example/uwp/build.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/example/uwp/build.ps1 b/example/uwp/build.ps1 index dbbad948c..da6e0ba70 100644 --- a/example/uwp/build.ps1 +++ b/example/uwp/build.ps1 @@ -1,7 +1,7 @@ param ( [string]$vcpkg_root = $(throw "-vcpkg_root= is required"), [string]$arch = "", - [string]$mode = "all" + [string]$mode = "all", [string]$compress = "7z" ) $ErrorActionPreference = "Stop" @@ -108,7 +108,7 @@ function export { if ($compress -eq "zip") { zip -r tdlib.vsix * - } else if ($compress -eq "winrar") { + } elseif ($compress -eq "winrar") { WinRAR.exe a -afzip -r -ep1 tdlib.vsix * } else { 7z.exe a -tzip -r tdlib.vsix * @@ -119,6 +119,9 @@ function export { function run { Push-Location Try { + if ($mode -eq "clean") { + clean + } if (($mode -eq "prepare") -or ($mode -eq "all")) { prepare }