From 9e19ce0616f542df1b97fe1866829c72d42adb04 Mon Sep 17 00:00:00 2001 From: Stuart Cam Date: Tue, 18 Dec 2018 20:57:14 +1100 Subject: [PATCH] Fix clean target by removing MSI files and leave .gitignore file intact (#83) --- installer/build/scripts/Targets.fsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installer/build/scripts/Targets.fsx b/installer/build/scripts/Targets.fsx index cf3ad362..6a478fe5 100644 --- a/installer/build/scripts/Targets.fsx +++ b/installer/build/scripts/Targets.fsx @@ -21,7 +21,9 @@ let versionToBuild = Commandline.parse() Target "Clean" (fun _ -> PatchAssemblyInfos (Products.Products.EmptyVersion) - CleanDirs [MsiBuildDir; OutDir;] + CleanDirs [MsiBuildDir] + for file in System.IO.Directory.EnumerateFiles(OutDir, "*.msi") do + System.IO.File.Delete(file) ) Target "BuildInstaller" (fun () ->