Asset Generation Runbook
Use this runbook when updating icon glyphs, font files, or Lottie animation assets for Screenbox.
1. Prerequisites
Ensure local dotnet tools are restored:
dotnet tool restore
2. Generate Font Assets
When font definitions in assets/fonts/ are modified or new glyph icons are added:
- Run the Font Generation Script:
pwsh ./scripts/Generate-Fonts.ps1 - Generated Output Location:
Screenbox/Assets/Fonts/ScreenboxFluentIcons.ttfScreenbox/Assets/Fonts/ScreenboxMDL2Assets.ttf
- Verification:
- Verify generated
.ttffiles underScreenbox/Assets/Fonts/. - Ensure the new glyphs match the character codes referenced in XAML or code (e.g.,
GlyphConverter.cs).
- Verify generated
3. Generate Lottie Animation Classes
When animation JSON files in assets/animations/ are added or modified:
- Run the Lottie Generation Script:
This script runspwsh ./scripts/generate-lottie.ps1LottieGenwith parameters:-GenerateColorBindings-GenerateDependencyObject-Language CSharp-MinimumUapVersion 8-Namespace Screenbox.Animations-Public-WinUIVersion 2.8- Target output:
Screenbox/Assets/Animations/
- Generated Output Location:
Screenbox/Assets/Animations/*.cs(e.g.,AnimatedPlayingVisualSource.cs)
- Verification:
- Build
Screenboxusing MSBuild from Visual Studio 2026 to ensure generated C# classes compile cleanly:msbuild Screenbox/Screenbox.csproj /p:Configuration=Debug /p:Platform=x64 /t:Build /m
- Build