diff --git a/.gitignore b/.gitignore index 5539efd0..203b9893 100644 --- a/.gitignore +++ b/.gitignore @@ -234,4 +234,7 @@ msbuild.binlog LottieGenOutput-*/ # Visual Studio debugging configuration file. -launchSettings.json \ No newline at end of file +launchSettings.json + +# Nuget Package files. +pack/ diff --git a/Lottie-Windows/Lottie-Windows-WinUI3/Lottie-Windows-WinUI3.csproj b/Lottie-Windows/Lottie-Windows-WinUI3/Lottie-Windows-WinUI3.csproj index 36d54c65..5f78d9ef 100644 --- a/Lottie-Windows/Lottie-Windows-WinUI3/Lottie-Windows-WinUI3.csproj +++ b/Lottie-Windows/Lottie-Windows-WinUI3/Lottie-Windows-WinUI3.csproj @@ -8,6 +8,7 @@ CommunityToolkit.WinUI.Lottie CommunityToolkit.WinUI.Lottie WinUI3 Toolkit Windows Animations Lottie XAML + True enable Microsoft diff --git a/Lottie-Windows/Lottie-Windows.props b/Lottie-Windows/Lottie-Windows.props index aea4f17d..94830cdd 100644 --- a/Lottie-Windows/Lottie-Windows.props +++ b/Lottie-Windows/Lottie-Windows.props @@ -6,7 +6,6 @@ This library provides the LottieVisualSource which is consumed by the Microsoft.UI.Xaml.Controls.AnimatedVisualPlayer to render Lottie JSON files. - True latest bin\AnyCPU\Release\CommunityToolkit.WinUI.Lottie.xml diff --git a/build/Lottie-Windows-Uwp.nuspec b/build/Lottie-Windows-Uwp.nuspec new file mode 100644 index 00000000..864b4f72 --- /dev/null +++ b/build/Lottie-Windows-Uwp.nuspec @@ -0,0 +1,54 @@ + + + + CommunityToolkit.Uwp.Lottie + 0.0.0-SpecifyVersionOnCommandline + Microsoft.Toolkit + true + https://github.com/windows-toolkit/Lottie-Windows/blob/master/license.md + https://github.com/windows-toolkit/Lottie-Windows + https://raw.githubusercontent.com/windows-toolkit/WindowsCommunityToolkit/master/build/nuget.png + This library provides the LottieVisualSource which is consumed by the Microsoft.UI.Xaml.Controls.AnimatedVisualPlayer to render Lottie JSON files in runtime. + Release https://github.com/windows-toolkit/Lottie-Windows/releases + (c) .NET Foundation and Contributors. All rights reserved. + UWP Toolkit Windows Animations Lottie XAML + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/build/build.cake b/build/build.cake index 8e4cbdc2..d881231a 100644 --- a/build/build.cake +++ b/build/build.cake @@ -244,6 +244,20 @@ Task("Package") // Invoke the pack target to generate the code to be packed. MSBuildSolution("Pack", ("GenerateLibraryLayout", "true"), ("PackageOutputPath", nupkgDir)); + var stage = Directory($"{buildDir}/pack/lib"); + + var net9Dir = stage + Directory("net9.0-windows10.0.26100.0"); + var uapDir = stage + Directory("uap10.0.16299"); + + // clean & recreate + CleanDirectory(stage); + EnsureDirectoryExists(net9Dir); + EnsureDirectoryExists(uapDir); + + // copy the Release builds + CopyFiles($"{baseDir}/Lottie-Windows/Lottie-Windows-UwpNet/bin/AnyCPU/{configuration}/net9.0-windows10.0.26100.0/*", net9Dir); + CopyFiles($"{baseDir}/Lottie-Windows/Lottie-Windows-Uwp/bin/AnyCPU/{configuration}/uap10.0.16299/*", uapDir); + foreach (var nuspec in GetFiles("./*.nuspec")) { var nuGetPackSettings = new NuGetPackSettings