Skip to content

Commit

Permalink
update build.fsx
Browse files Browse the repository at this point in the history
  • Loading branch information
wraikny committed Jan 18, 2022
1 parent a989fe9 commit d8a304f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,18 @@ Target.create "Test" (fun _ ->
)

Target.create "CopyDlls" (fun _ ->
let shell cmd args =
let res = Shell.Exec(cmd, args)
if res <> 0 then failwithf "failed '%s %s'" cmd args

Directory.ensure "output"

[ "netstandard2.1"
"net5.0"
"net6.0"
] |> Seq.iter (fun target ->
shell "mkdir" $"output/%s{target}"
Shell.mkdir $"output/%s{target}"
[ ""
".Altseed2"
".FSharp"
] |> Seq.iter (fun sufix ->
shell "cp" $"src/AwaitableCoroutine%s{sufix}/bin/Release/%s{target}/AwaitableCoroutine%s{sufix}.dll output/%s{target}/."
Shell.cp $"src/AwaitableCoroutine%s{sufix}/bin/Release/%s{target}/AwaitableCoroutine%s{sufix}.dll" $"output/%s{target}/."
)
)
)
Expand Down

0 comments on commit d8a304f

Please sign in to comment.