installer/build/scripts/Targets.fsx (37 lines of code) (raw):
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
// or more contributor license agreements. Licensed under the Elastic License;
// you may not use this file except in compliance with the Elastic License.
#I "../../packages/build/FAKE.x64/tools"
#r "FakeLib.dll"
#load "Products.fsx"
#load "Build.fsx"
#load "Commandline.fsx"
open System
open Fake
open Products
open Products.Paths
open Build.Builder
open Commandline
open Fake.Runtime.Trace
let versionToBuild = Commandline.parse()
Target "Clean" (fun _ ->
PatchAssemblyInfos (Products.Products.EmptyVersion)
CleanDirs [MsiBuildDir]
for file in System.IO.Directory.EnumerateFiles(OutDir, "*.msi") do
System.IO.File.Delete(file)
)
Target "BuildInstaller" (fun () ->
traceHeader (sprintf "Products:%s%s%s" Environment.NewLine Environment.NewLine versionToBuild.FullVersion)
BuildMsi versionToBuild
)
Target "Release" (fun () ->
trace "Build in Release mode. MSI will be signed."
)
Target "PatchVersions" (fun () ->
trace "Patching versions."
PatchAssemblyInfos versionToBuild
)
Target "Help" (fun () -> trace Commandline.usage)
"BuildInstaller"
==> "Release"
RunTargetOrDefault "Help"