Home / Skills / leaf7684/windows-modern-media-player

generate-assets

>-

skillLicense: MIT Source: leaf7684/windows-modern-media-player

Install

Copy this folder into your Claude Code project (needs Node.js):

npx degit leaf7684/windows-modern-media-player/.agents/skills/generate-assets .claude/skills/generate-assets

Or install it for every project:

npx degit leaf7684/windows-modern-media-player/.agents/skills/generate-assets ~/.claude/skills/generate-assets

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗

---
name: generate-assets
description: >-
  Procedures for generating vector fonts and Lottie animation visual sources from assets.
  Use when vector font definitions, font glyphs, or animation JSON files are modified.
---

# Asset Generation Runbook

Use this runbook when updating icon glyphs, font files, or Lottie animation assets for windows-modern-media-player.

---

## 1. Prerequisites

Ensure local dotnet tools are restored:
```pwsh
dotnet tool restore
```

---

## 2. Generate Font Assets

When font definitions in `assets/fonts/` are modified or new glyph icons are added:

1. **Run the Font Generation Script**:
   ```pwsh
   pwsh ./scripts/Generate-Fonts.ps1 -Publish
   ```
2. **Generated Output Location**:
   - `windows-modern-media-player/Assets/Fonts/windows-modern-media-playerFluentIcons.ttf`
   - `windows-modern-media-player/Assets/Fonts/windows-modern-media-playerMDL2Assets.ttf`
3. **Verification**:
   - Verify generated `.ttf` files under `windows-modern-media-player/Assets/Fonts/`.
   - Ensure the new glyphs match the character codes referenced in XAML or code (e.g., `GlyphConverter.cs`, `Icon.xaml`).

---

## 3. Generate Lottie Animation Classes

When animation JSON files in `assets/animations/` are added or modified:

1. **Run the Lottie Generation Script**:
   ```pwsh
   pwsh ./scripts/ConvertFrom-Lottie.ps1
   ```
   This script runs `LottieGen` with parameters:
   - `-GenerateColorBindings`
   - `-GenerateDependencyObject`
   - `-Language CSharp`
   - `-MinimumUapVersion 8`
   - `-Namespace windows-modern-media-player.Animations`
   - `-Public`
   - `-WinUIVersion 2.8`
   - Target output: `windows-modern-media-player/Assets/Animations/`
2. **Generated Output Location**:
   - `windows-modern-media-player/Assets/Animations/*.cs` (e.g., `AnimatedPlayingVisualSource.cs`)
3. **Verification**:
   - Build `windows-modern-media-player` using MSBuild from Visual Studio 2026 to ensure generated C# classes compile cleanly:
     ```pwsh
     msbuild windows-modern-media-player/windows-modern-media-player.csproj /p:Configuration=Debug /p:Platform=x64 /t:Build /m
     ```