Skip to content

Commit 14d4bfc

Browse files
committed
Add build and run script
1 parent 8782cfe commit 14d4bfc

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

README.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,27 @@ Read our [API Specification](docs/API.md).
2121

2222
If you are using Bitcoin core default settings:
2323

24+
On Powershell:
2425
```
25-
git clone https://github.com/dgarage/NBXplorer
26-
cd NBXplorer/NBXplorer
27-
dotnet build -c Release
26+
.\build.ps1
2827
```
28+
29+
On Linux:
30+
```
31+
./build.sh
32+
```
33+
2934
Then to run:
3035

36+
On Powershell:
3137
```
32-
dotnet run --no-build -c Release
38+
.\run.ps1 --help
3339
```
3440

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

3743
```
38-
dotnet run --no-build -c Release -- --help
44+
./run.sh --help
3945
```
4046

4147
Example, if you have ltc node and btc node on regtest (default configuration), and want to connect to them:

build.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dotnet build -c Release .\NBXplorer\NBXplorer.csproj

build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
dotnet build -c Release NBXplorer/NBXplorer.csproj

run.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dotnet run --no-launch-profile --no-build -c Release -p .\NBXplorer\NBXplorer.csproj -- $args

run.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
dotnet run --no-launch-profile --no-build -c Release -p "NBXplorer/NBXplorer.csproj" -- "$@"

0 commit comments

Comments
 (0)