From 311b885d8a1a26257a157c6a8352ea4e67096059 Mon Sep 17 00:00:00 2001 From: sandreas <2050604+sandreas@users.noreply.github.com> Date: Sat, 14 Dec 2024 19:28:07 +0100 Subject: [PATCH] Added trimmer instructions to prevent missing libraries --- .github/workflows/release.yml | 2 +- tone/tone.TrimmerRootDescriptor.xml | 6 ++++++ tone/tone.csproj | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tone/tone.TrimmerRootDescriptor.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1ba46e..dfdd69b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,7 +78,7 @@ jobs: echo "::set-output name=release_notes::$release_notes" - sed -i.bak "s/net6.0<\/TargetFramework>/${{ env.DOTNET_FRAMEWORK }}<\/TargetFramework>/g" ${{ env.PROJECT_PATH }} + sed -i.bak "s/net8.0<\/TargetFramework>/${{ env.DOTNET_FRAMEWORK }}<\/TargetFramework>/g" ${{ env.PROJECT_PATH }} if [ "${{ matrix.target }}" == "osx-arm64" ]; then dotnet publish ${{ env.PROJECT_PATH }} --framework ${{ env.DOTNET_FRAMEWORK }} --runtime "${{ matrix.target }}" -c Release -p:EnableCompressionInSingleFile=false -p:PublishSingleFile=true --self-contained true -p:PublishReadyToRun=true -p:PublishTrimmed=true -o "$release_name" diff --git a/tone/tone.TrimmerRootDescriptor.xml b/tone/tone.TrimmerRootDescriptor.xml new file mode 100644 index 0000000..810c9f7 --- /dev/null +++ b/tone/tone.TrimmerRootDescriptor.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/tone/tone.csproj b/tone/tone.csproj index a515947..8db5c3d 100644 --- a/tone/tone.csproj +++ b/tone/tone.csproj @@ -77,4 +77,8 @@ + + + +