diff --git a/.github/workflows/nuget-static-graphics.yml b/.github/workflows/nuget-static-graphics.yml index 663265b..4ecb7a4 100644 --- a/.github/workflows/nuget-static-graphics.yml +++ b/.github/workflows/nuget-static-graphics.yml @@ -258,6 +258,18 @@ jobs: - name: Pack NuGet package run: dotnet pack NuGet/StaticGraphics/StaticLink.Avalonia.csproj -c Release -o artifacts/nuget + - name: Verify portable NuGet paths + shell: bash + run: | + package=$(find artifacts/nuget -name 'StaticLink.Avalonia.*.nupkg' ! -name 'StaticLink.Avalonia.Native.*.nupkg' -print -quit) + test -n "$package" + if unzip -Z1 "$package" | grep -F '\'; then + echo "NuGet package contains Windows-only backslash paths." + exit 1 + fi + unzip -Z1 "$package" | grep -Fx 'buildTransitive/StaticLink.Avalonia.props' + unzip -Z1 "$package" | grep -Fx 'buildTransitive/StaticLink.Avalonia.targets' + - name: Upload NuGet artifact uses: actions/upload-artifact@v4 with: diff --git a/NuGet/StaticGraphics/README.md b/NuGet/StaticGraphics/README.md index ac21f9c..25b8557 100644 --- a/NuGet/StaticGraphics/README.md +++ b/NuGet/StaticGraphics/README.md @@ -11,7 +11,7 @@ dotnet add package StaticLink.Avalonia Or add it manually: ```xml - + ``` For macOS, also reference `StaticLink.Avalonia.Native`. This package is macOS-only and must match your Avalonia version because it contains `libAvaloniaNative.a`. diff --git a/NuGet/StaticGraphics/StaticLink.Avalonia.csproj b/NuGet/StaticGraphics/StaticLink.Avalonia.csproj index 86394a3..e80b992 100644 --- a/NuGet/StaticGraphics/StaticLink.Avalonia.csproj +++ b/NuGet/StaticGraphics/StaticLink.Avalonia.csproj @@ -6,7 +6,7 @@ false false StaticLink.Avalonia - 3.119.2-7151.10 + 3.119.2-7151.12 greepar greepar Static SkiaSharp, HarfBuzzSharp, and ANGLE libraries for Avalonia NativeAOT single-file publishing. diff --git a/README.md b/README.md index b8cb49f..af84e2f 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,10 @@ dotnet add package StaticLink.Avalonia Or add it manually: ```xml - + ``` -`3.119.2-7151.11` supports Avalonia 11. If you need the SkiaSharp 2 line for an Avalonia 11 project, use this optional package variant: +`3.119.2-7151.12` supports Avalonia 11. If you need the SkiaSharp 2 line for an Avalonia 11 project, use this optional package variant: ```xml