Skip to content

Commit

Permalink
Using included .paket/paket.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
sajagi committed Jan 5, 2024
1 parent a65f69d commit cbf91b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/build/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Environment.CurrentDirectory <- rootPath

let git = where "git"
let dotnet = where "dotnet"
let paket = tryWhere "paket"
let paket = rootPath @@ ".paket" @@ "paket.exe"

module Targets =
let build () =
Expand All @@ -33,15 +33,13 @@ module Targets =
!! outDir ++ "**/bin" ++ "**/obj" -- "src/build/**" |> Seq.toArray |> Shell.cleanDirs

let pack (version: string option) =
if paket.IsNone then failwith "Unable to locate paket.exe" else
let getVersion msg =
printf msg
let versionString = System.Console.ReadLine()
if String.IsNullOrWhiteSpace(versionString) then "1.0.0" else versionString

let version = version |> Option.defaultWith (fun () -> getVersion "Nuget version: ")

let paket = paket.Value
exec paket $"pack --version {version} --template \"src/Jumble.Console/paket.template\" \"{nugetDir}\""
exec paket $"pack --version {version} --template \"src/Jumble/paket.template\" \"{nugetDir}\""

Expand Down

0 comments on commit cbf91b4

Please sign in to comment.