Skip to content

Commit

Permalink
Update submodule to use master
Browse files Browse the repository at this point in the history
Removes the need for mobile-working-branch. Closes btcpayserver/btcpayserver#5968.
  • Loading branch information
dennisreimann committed Jan 22, 2025
1 parent 57355d4 commit c38e944
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
26 changes: 2 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,12 @@ git clone [email protected]:btcpayserver/app.git
# Switch to it
cd app

# Initialize the server submodule
git submodule init && git submodule update --recursive

# Install the workloads
dotnet workload restore
# Run the setup script
./setup.sh

# Go to the server submodule
cd submodules/btcpayserver/BTCPayServer.Tests

# Verify you are on the `mobile-working-branch` branch
git branch --show current

# If not, check it out
git checkout mobile-working-branch

# Run the server
docker-compose up dev
```
Expand All @@ -40,19 +31,6 @@ Click the Connect button, use `http://localhost:14142` as the server URL and an
After the first run of `DEV ALL` on a Linux machine with a new .NET setup, you may run into the [dotnet dev-certs - Untrusted Root](https://github.com/dotnet/aspnetcore/issues/41503)
error, and you may find a solution at the [following link](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-dev-certs)

## Missing dependencies in development environment

If BTCPay Server does not start up with the app and its dependencies, run this:

```bash
cd BTCPayApp.Core
dotnet publish -c Debug -o ../BTCPayServer.Plugins.App/bin/Debug/net8.0
cd -
cd BTCPayServer.Plugins.App
dotnet publish -c Debug -o bin/Debug/net8.0
cd -
```

## Lightning Channels

To establish channels for local testing, you can use the Docker Lightning CLI scripts like this:
Expand Down
22 changes: 22 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

# Initialize the server submodule
git submodule init && git submodule update --recursive

# Install the workloads
dotnet workload restore

# Create appsettings file to include app plugin when running the server
appsettings="submodules/btcpayserver/BTCPayServer/appsettings.dev.json"
if [ ! -f $appsettings ]; then
echo '{ "DEBUG_PLUGINS": "../../../BTCPayServer.Plugins.App/bin/Debug/net8.0/BTCPayServer.Plugins.App.dll" }' > $appsettings
fi

# Build the core and plugin to share their dependencies with the server
cd BTCPayApp.Core
dotnet publish -c Debug -o ../BTCPayServer.Plugins.App/bin/Debug/net8.0
cd -

cd BTCPayServer.Plugins.App
dotnet publish -c Debug -o bin/Debug/net8.0
cd -

0 comments on commit c38e944

Please sign in to comment.