Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add build scripts
This resolves #31
  • Loading branch information
moodmosaic committed Nov 11, 2017
commit 7e00817051b10f55755c308c3e2112b410c4702c
14 changes: 14 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@echo off
cls

.paket\paket.bootstrapper.exe
if errorlevel 1 (
exit /b %errorlevel%
)

.paket\paket.exe restore
if errorlevel 1 (
exit /b %errorlevel%
)

packages\FAKE\tools\FAKE.exe build.fsx %*
16 changes: 16 additions & 0 deletions build.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#r @"packages/FAKE/tools/FakeLib.dll"

open Fake

Target "Build" <| fun _ ->
!! (System.IO.Path.Combine ("src", "BitcoinLib.sln"))
|> MSBuildRelease "" "Rebuild"
|> ignore

Target "NuGet" (fun _ ->
Paket.Pack (fun p -> { p with OutputPath = ".nuget" }))

"Build"
==> "NuGet"

RunTargetOrDefault "Build"
16 changes: 16 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh -eu

if [ -z "${COMSPEC-}" ]; then
run="mono"
else
run=""
fi

# Only run bootstrapper if we haven't done so in the last 24 hours, this keeps builds fast.
if ! test -f .paket/paket.bootstrapper.run || find .paket/paket.bootstrapper.run -type f -mtime +1 | grep -q paket.bootstrapper.run; then
$run .paket/paket.bootstrapper.exe
touch .paket/paket.bootstrapper.run
fi

$run .paket/paket.exe restore
$run packages/FAKE/tools/FAKE.exe $@
2 changes: 1 addition & 1 deletion paket.dependencies
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source https://api.nuget.org/v3/index.json

nuget FAKE
nuget NuGet.CommandLine
nuget Newtonsoft.Json 6.0.3 restriction: >= net45
1 change: 1 addition & 0 deletions paket.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NUGET
remote: https://api.nuget.org/v3/index.json
FAKE (4.63.2)
Newtonsoft.Json (6.0.3) - restriction: >= net45
NuGet.CommandLine (4.3)