Skip to content

Commit

Permalink
Update build.fsx for release v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
omaus committed Apr 28, 2021
1 parent b92dacb commit ab9b649
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ nuget Fake.Tools.Git //"
#r "netstandard" // Temp fix for https://github.com/dotnet/fsharp/issues/5216
#endif

//#r "nuget: BlackFox.Fake.BuildTask"
//#r "nuget: Fake.Core.Target"
//#r "nuget: Fake.Core.Process"
//#r "nuget: Fake.Core.ReleaseNotes"
//#r "nuget: Fake.IO.FileSystem"
//#r "nuget: Fake.DotNet.Cli"
//#r "nuget: Fake.DotNet.MSBuild"
//#r "nuget: Fake.DotNet.AssemblyInfoFile"
//#r "nuget: Fake.DotNet.Paket"
//#r "nuget: Fake.DotNet.FSFormatting"
//#r "nuget: Fake.DotNet.Fsi"
//#r "nuget: Fake.DotNet.NuGet"
//#r "nuget: Fake.Api.Github"
//#r "nuget: Fake.DotNet.Testing.Expecto"
//#r "nuget: Fake.Tools.Git"

open BlackFox.Fake
open System.IO
open Fake.Core
Expand Down Expand Up @@ -126,6 +142,44 @@ module BasicTasks =
|> DotNet.build id
}

let publishWin = BuildTask.create "PublishWin" [clean] {
let publishOps _ =
DotNet.PublishOptions.Create ()
|> fun x -> {
x with
Runtime = Some "win-x64"
}
solutionFile
|> DotNet.publish publishOps
}

let publishMac = BuildTask.create "PublishMac" [clean] {
let publishOps _ =
DotNet.PublishOptions.Create ()
|> fun x -> {
x with
Runtime = Some "osx-x64"
}
solutionFile
|> DotNet.publish publishOps
}

let publishLnx = BuildTask.create "PublishLnx" [clean] {
let publishOps _ =
DotNet.PublishOptions.Create ()
|> fun x -> {
x with
Runtime = Some "linux-x64"
}
solutionFile
|> DotNet.publish publishOps
}

let publishAll = BuildTask.create "PublishAll" [publishWin; publishMac; publishLnx] {
solutionFile
|> DotNet.build id
}

let copyBinaries = BuildTask.create "CopyBinaries" [clean; build] {
let targets =
!! "src/**/*.??proj"
Expand Down

0 comments on commit ab9b649

Please sign in to comment.