From dc405aec765fad5f48fbda41c8aa467e537797a1 Mon Sep 17 00:00:00 2001 From: ryancheung Date: Wed, 20 Mar 2024 10:58:26 +0800 Subject: [PATCH] Add UWP seperate project --- .github/workflows/ci.yml | 19 ++++++++ FreeTypeSharp/FreeTypeSharp.UWP.csproj | 65 ++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 FreeTypeSharp/FreeTypeSharp.UWP.csproj diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a86acfd..7536ac8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,25 @@ jobs: - name: Build run: dotnet pack FreeTypeSharp/FreeTypeSharp.csproj + - uses: actions/upload-artifact@v4 + with: + name: ${{ github.event.repository.name }} Artifacts + path: | + FreeTypeSharp/bin/Release/*.nupkg + + BuildUWP: + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + + - name: Build + run: msbuild FreeTypeSharp/FreeTypeSharp.UWP.csproj -t:Restore,Pack /property:Configuration=Release + - uses: actions/upload-artifact@v4 with: name: ${{ github.event.repository.name }} Artifacts diff --git a/FreeTypeSharp/FreeTypeSharp.UWP.csproj b/FreeTypeSharp/FreeTypeSharp.UWP.csproj new file mode 100644 index 0000000..f8ea453 --- /dev/null +++ b/FreeTypeSharp/FreeTypeSharp.UWP.csproj @@ -0,0 +1,65 @@ + + + + uap10.0 + + + + true + FreeTypeSharp + FreeTypeSharp + 2.1.0 + + + + + https://github.com/ryancheung/FreeTypeSharp + https://github.com/ryancheung/FreeTypeSharp + ryancheung + README.md + MIT + A modern cross-platform managed FreeType2 library. + freetype2;netstandard2.0;.net8.0; + FreeTypeSharp.UWP + Copyright 2024 ryancheung + + + + + + + + UAP + 10.0.19041.0 + 10.0.16299.0 + .NETCore + v5.0 + $(DefineConstants);WINDOWS_UWP + + + + + + + + true + runtimes\win10-x86\native\ + runtimes\win10-x86\native\freetype.dll + PreserveNewest + + + + true + runtimes\win10-x64\native\ + runtimes\win10-x64\native\freetype.dll + PreserveNewest + + + + true + runtimes\win10-arm64\native\ + runtimes\win10-arm64\native\freetype.dll + PreserveNewest + + +