diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 8517ee3..a7e4a53 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -20,7 +20,7 @@ jobs: name: debian-x64 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: ./Build/CI/build.sh env: RID: debian-x64 @@ -30,7 +30,7 @@ jobs: name: linux-x64 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: ./Build/CI/build.sh env: RID: linux-x64 @@ -39,7 +39,7 @@ jobs: name: osx-x64 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: ./Build/CI/build.sh env: RID: osx-x64 @@ -48,7 +48,7 @@ jobs: name: win-x64 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: ./Build/CI/build.sh env: RID: win-x64 @@ -61,7 +61,7 @@ jobs: needs: [osx-x64] if: startsWith( github.ref, 'refs/tags/') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: ./Build/CI/applesign.sh env: APPLE_ID: ${{ secrets.APPLE_ID }} @@ -76,7 +76,7 @@ jobs: needs: [win-x64, osx-x64, linux-x64, debian-x64, applesign] if: ${{ always() }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: ./Build/CI/pgpsign.sh env: PGP_KEY: ${{ secrets.PGP_KEY }} @@ -87,7 +87,7 @@ jobs: needs: [pgpsign, applesign] if: startsWith( github.ref, 'refs/tags/') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: ./Build/CI/makerelease.sh env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/BTCPayServer.Vault/BTCPayServer.Vault.csproj b/BTCPayServer.Vault/BTCPayServer.Vault.csproj index 4d8cba1..da41bd0 100644 --- a/BTCPayServer.Vault/BTCPayServer.Vault.csproj +++ b/BTCPayServer.Vault/BTCPayServer.Vault.csproj @@ -61,4 +61,10 @@ true true + + + + + + diff --git a/BTCPayServer.Vault/MainWindow.xaml.cs b/BTCPayServer.Vault/MainWindow.xaml.cs index 836b3f3..a6c6bf8 100644 --- a/BTCPayServer.Vault/MainWindow.xaml.cs +++ b/BTCPayServer.Vault/MainWindow.xaml.cs @@ -93,7 +93,7 @@ MainWindowViewModel MainViewModel public IServiceProvider ServiceProvider { get; private set; } public IRunningIndicator Indicator { get; private set; } - AvaloniaSynchronizationContext Context; + AvaloniaSynchronizationContext Context = new AvaloniaSynchronizationContext(); internal async Task Authorize(OriginReason originReason) { diff --git a/Build/common/export-variables.sh b/Build/common/export-variables.sh index 7bb6a18..5b7866e 100644 --- a/Build/common/export-variables.sh +++ b/Build/common/export-variables.sh @@ -1,7 +1,8 @@ #!/bin/bash -BUILD_ARGS="--runtime $RUNTIME -p:Configuration=Release -p:GithubDistrib=true" -FRAMEWORK="net6.0" +DOTNET_RUNTIME=${DOTNET_RUNTIME:-$RUNTIME} +BUILD_ARGS="--runtime $DOTNET_RUNTIME -p:Configuration=Release -p:GithubDistrib=true" +FRAMEWORK="net8.0" DIST="/source/dist" RESOURCES="/source/Build/${RUNTIME}" RESOURCES_COMMON="/source/Build/common" @@ -14,7 +15,7 @@ TITLE="$(cat $PROJECT_FILE | sed -n 's/.*\(.*\)<\/Title>.*/\1/p')" if [ -f "$VERSION_FILE" ]; then VERSION="$(cat $VERSION_FILE | sed -n 's/.*<Version>\(.*\)<\/Version>.*/\1/p')" fi -PUBLISH_FOLDER="/source/BTCPayServer.Vault/bin/Release/$FRAMEWORK/$RUNTIME/publish" +PUBLISH_FOLDER="/source/BTCPayServer.Vault/bin/Release/$FRAMEWORK/$DOTNET_RUNTIME/publish" EXECUTABLE="$(cat $PROJECT_FILE | sed -n 's/.*<TargetName>\(.*\)<\/TargetName>.*/\1/p')" mkdir -p "$DIST" diff --git a/Build/debian-x64/Dockerfile b/Build/debian-x64/Dockerfile index daa6d0f..fe86456 100644 --- a/Build/debian-x64/Dockerfile +++ b/Build/debian-x64/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS builder +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS builder # Optimize docker cache, do not make it one layer RUN apt-get update @@ -15,6 +15,7 @@ ARG PGP_KEY="" RUN ! [[ "${PGP_KEY}" ]] || apt-get install -y debsigs WORKDIR /source +ENV DOTNET_RUNTIME "linux-x64" ENV RUNTIME "debian-x64" COPY "Build/common" "Build/common" ENV EXPORT_VARIABLES "source Build/common/export-variables.sh" diff --git a/Build/linux-x64/Dockerfile b/Build/linux-x64/Dockerfile index 9524050..c8d1005 100644 --- a/Build/linux-x64/Dockerfile +++ b/Build/linux-x64/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS builder +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS builder RUN wget -qO /tmp/hwi.tar.gz https://github.com/bitcoin-core/HWI/releases/download/2.1.1/hwi-2.1.1-linux-amd64.tar.gz && \ tar -zxvf /tmp/hwi.tar.gz -C /tmp hwi && \ diff --git a/Build/osx-x64/Dockerfile b/Build/osx-x64/Dockerfile index eb64b24..b920c23 100644 --- a/Build/osx-x64/Dockerfile +++ b/Build/osx-x64/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS builder +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS builder # Optimize docker cache, do not make it one layer RUN apt-get update diff --git a/Build/win-x64/Dockerfile b/Build/win-x64/Dockerfile index 38958d3..dce7c0b 100644 --- a/Build/win-x64/Dockerfile +++ b/Build/win-x64/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS builder +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS builder # Optimize docker cache, do not make it one layer RUN apt-get update