Add build and run script

This commit is contained in:
nicolas.dorier 2018-03-14 16:11:02 +09:00
parent 8782cfeaec
commit 14d4bfcc75
5 changed files with 20 additions and 6 deletions

View File

@ -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
View File

@ -0,0 +1 @@
dotnet build -c Release .\NBXplorer\NBXplorer.csproj

3
build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
dotnet build -c Release NBXplorer/NBXplorer.csproj

1
run.ps1 Executable file
View File

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

3
run.sh Executable file
View File

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