Add build and run script
This commit is contained in:
parent
8782cfeaec
commit
14d4bfcc75
18
README.md
18
README.md
@ -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:
|
||||
|
||||
1
build.ps1
Executable file
1
build.ps1
Executable file
@ -0,0 +1 @@
|
||||
dotnet build -c Release .\NBXplorer\NBXplorer.csproj
|
||||
3
build.sh
Executable file
3
build.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
dotnet build -c Release NBXplorer/NBXplorer.csproj
|
||||
1
run.ps1
Executable file
1
run.ps1
Executable file
@ -0,0 +1 @@
|
||||
dotnet run --no-launch-profile --no-build -c Release -p .\NBXplorer\NBXplorer.csproj -- $args
|
||||
Loading…
Reference in New Issue
Block a user