diff --git a/build.ps1 b/build.ps1 index b7b04089a..e0b5044db 100755 --- a/build.ps1 +++ b/build.ps1 @@ -1 +1 @@ -dotnet build -c Release .\BTCPayServer\BTCPayServer.csproj +dotnet publish --no-cache -o BTCPayServer/bin/Release/publish/ -c Release .\BTCPayServer\BTCPayServer.csproj diff --git a/build.sh b/build.sh index 12458670f..45abf6359 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,3 @@ #!/bin/bash -dotnet build -c Release BTCPayServer/BTCPayServer.csproj +dotnet publish --no-cache -o BTCPayServer/bin/Release/publish/ -c Release BTCPayServer/BTCPayServer.csproj diff --git a/run.ps1 b/run.ps1 index e17196322..ec45638b8 100755 --- a/run.ps1 +++ b/run.ps1 @@ -1 +1,4 @@ -dotnet run --no-launch-profile --no-build -c Release --project .\BTCPayServer\BTCPayServer.csproj -- $args +pushd +cd BTCPayServer/bin/Release/publish/ +dotnet "BTCPayServer.dll" $args +popd \ No newline at end of file diff --git a/run.sh b/run.sh index c3a1807ef..3bf43c7e2 100755 --- a/run.sh +++ b/run.sh @@ -1,3 +1,4 @@ #!/bin/bash -dotnet run --no-launch-profile --no-build -c Release --project "BTCPayServer/BTCPayServer.csproj" -- $@ +cd BTCPayServer/bin/Release/publish/ +dotnet "BTCPayServer.dll" $@