Skip to content

Commit

Permalink
Add build and run script
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Mar 14, 2018
1 parent 8782cfe commit 14d4bfc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,27 @@ Read our [API Specification](docs/API.md).

If you are using Bitcoin core default settings:

On Powershell:
```
git clone https://github.com/dgarage/NBXplorer
cd NBXplorer/NBXplorer
dotnet build -c Release
.\build.ps1
```

On Linux:
```
./build.sh
```

Then to run:

On Powershell:
```
dotnet run --no-build -c Release
.\run.ps1 --help
```

For help, or passing arguments to the program, pass them after `--`:
On Linux:

```
dotnet run --no-build -c Release -- --help
./run.sh --help
```

Example, if you have ltc node and btc node on regtest (default configuration), and want to connect to them:
Expand Down
1 change: 1 addition & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dotnet build -c Release .\NBXplorer\NBXplorer.csproj
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

dotnet build -c Release NBXplorer/NBXplorer.csproj
1 change: 1 addition & 0 deletions run.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dotnet run --no-launch-profile --no-build -c Release -p .\NBXplorer\NBXplorer.csproj -- $args
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

dotnet run --no-launch-profile --no-build -c Release -p "NBXplorer/NBXplorer.csproj" -- "$@"

0 comments on commit 14d4bfc

Please sign in to comment.