Skip to content

(feat) update-assets now generates all recommended variants and light/dark them variants - #355

Merged
Nikola Metulev (nmetulev) merged 3 commits into
mainfrom
nm/update-assets-update
Mar 18, 2026
Merged

Nikola Metulev (nmetulev) merged 3 commits into
mainfrom
nm/update-assets-update

Conversation

@nmetulev

Copy link
Copy Markdown
Member

Expand manifest update-assets — full MRT asset coverage, ICO output, SVG direct rendering, light theme support

Closes #321, closes #327

Summary

Building on the SVG input support added in #326, this PR makes winapp manifest update-assets generate the complete set of assets that Windows (MRT) expects, adds ICO output, and introduces --light-image for light theme variants.

What changed

Expanded asset generation

  • 14 target sizes (was 5) for app icon: 16, 20, 24, 30, 32, 36, 40, 48, 60, 64, 72, 80, 96, 256 — both plated and unplated variants
  • 5 scale factors (was 2) for all assets: 100%, 125%, 150%, 200%, 400%
  • app.ico generated automatically — multi-resolution ICO (16, 24, 32, 48, 256) using PNG-encoded frames

--light-image option

  • Generates _altform-lightunplated variants for app icon targetsize assets
  • Generates _altform-colorful_theme-light variants for scale assets (tiles, store logo)
  • Accepts the same image as the main source (for apps with a single icon) or a separate light-optimized image

SVG direct rendering

  • Introduced ImageSource abstraction that keeps SVG as vector data (SKPicture) through the entire pipeline
  • Each asset is rendered via SkiaSharp at the exact target size — no intermediate 1024px rasterization step
  • Raster inputs (PNG/JPG/ICO/BMP) continue using GDI+ bicubic scaling

New naming convention for new projects

  • winapp init / manifest generate now use Microsoft's recommended names: AppList, MedTile, WideTile, StoreLogo
  • Existing projects keep their current names — update-assets reads names from the manifest
  • Dimension lookup in ManifestService recognizes both old and new naming

Type of Change

  • ✨ New feature

Checklist

  • New tests added for new functionality (if applicable)
  • Tested locally on Windows
  • Main README.md updated (if applicable)
  • docs/usage.md updated (if CLI commands changed)
  • Agent skill templates updated in docs/fragments/skills/ (if CLI commands/workflows changed)

@github-actions

github-actions Bot commented Mar 13, 2026 •

Copy link
Copy Markdown
Contributor

Build Metrics Report

Binary Sizes

Artifact Baseline Current Delta
CLI (ARM64) 18.33 MB 18.34 MB 📈 +10.5 KB (+0.06%)
CLI (x64) 17.55 MB 17.56 MB 📈 +10.0 KB (+0.06%)
MSIX (ARM64) 7.72 MB 7.72 MB 📈 +9.7 KB (+0.12%)
MSIX (x64) 8.03 MB 8.03 MB 📈 +4.1 KB (+0.05%)
NPM Package 15.79 MB 15.80 MB 📈 +12.9 KB (+0.08%)

Test Results

✅ 407 passed out of 407 tests in 425.6s (+3 tests, +59.0s vs. baseline)

Test Coverage

❌ 42.3% line coverage, 46.1% branch coverage · ✅ +0.2% vs. baseline

CLI Startup Time

41ms median (x64, winapp --version) · ✅ +5ms vs. baseline


Updated 2026-03-14 00:20:11 UTC · commit cd188c9 · workflow run

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Expands winapp manifest update-assets to generate a fuller MRT-recommended asset set (more scales + targetsize variants), adds app.ico generation, supports light-theme variants via --light-image, and updates new-project manifest templates/docs to the recommended asset filenames.

Changes:

  • Add --light-image option and generate light-theme asset variants.
  • Rework asset generation pipeline (SVG renders at target size via Skia; expanded scales/targets; generate app.ico).
  • Update manifest templates, default embedded assets, tests, and documentation to align with recommended asset names (AppList/MedTile/WideTile/StoreLogo).

Reviewed changes

Copilot reviewed 17 out of 24 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/winapp-npm/src/winapp-commands.ts Adds lightImage option and forwards --light-image to the CLI.
src/winapp-CLI/WinApp.Cli/Templates/appxmanifest.sparse.xml Updates template asset filenames to AppList/MedTile.
src/winapp-CLI/WinApp.Cli/Templates/appxmanifest.packaged.xml Updates template asset filenames and WideTile reference.
src/winapp-CLI/WinApp.Cli/Services/ManifestService.cs Wires light-image through, generates app.ico, and recognizes new asset naming in dimension lookup.
src/winapp-CLI/WinApp.Cli/Services/ImageAssetService.cs Introduces ImageSource, expands variants, adds light-theme generation, and writes multi-frame ICO.
src/winapp-CLI/WinApp.Cli/Services/IManifestService.cs Extends API to accept optional lightImagePath.
src/winapp-CLI/WinApp.Cli/Services/IImageAssetService.cs Extends API for light-theme generation + adds GenerateIcoAsync.
src/winapp-CLI/WinApp.Cli/Commands/ManifestUpdateAssetsCommand.cs Adds --light-image CLI option and passes it to the service layer.
src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/WideTile.scale-200.png Updates/introduces embedded default assets for new naming.
src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/WideTile.png Updates/introduces embedded default assets for new naming.
src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/MedTile.scale-200.png Updates/introduces embedded default assets for new naming.
src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/MedTile.png Updates/introduces embedded default assets for new naming.
src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/AppList.targetsize-24_altform-unplated.png Updates/introduces embedded default assets for new naming.
src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/AppList.scale-200.png Updates/introduces embedded default assets for new naming.
src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/AppList.png Updates/introduces embedded default assets for new naming.
src/winapp-CLI/WinApp.Cli.Tests/ManifestUpdateAssetsCommandTests.cs Expands tests for new variants, light assets, and ICO header expectations.
src/winapp-CLI/WinApp.Cli.Tests/ManifestCommandTests.cs Updates expected generated asset filenames for new-project naming.
scripts/generate-llm-docs.ps1 Updates skill description text for manifest skill.
docs/usage.md Updates CLI usage docs for new asset set + --light-image.
docs/npm-usage.md Updates npm wrapper docs to include lightImage.
docs/fragments/skills/winapp-cli/manifest.md Updates skill fragment for SVG + light image + new asset outputs.
docs/cli-schema.json Adds --light-image to schema and updates argument description.
.github/plugin/skills/winapp-cli/manifest/SKILL.md Regenerated skill output reflecting updated fragment/schema.
.github/plugin/agents/winapp.agent.md Updates agent docs to mention --light-image and ICO generation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread docs/usage.md Resolved
Comment thread docs/cli-schema.json Resolved

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@nmetulev
Nikola Metulev (nmetulev) merged commit 5eb7e4a into main Mar 18, 2026
11 checks passed
@nmetulev
Nikola Metulev (nmetulev) deleted the nm/update-assets-update branch March 18, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: image assets should follow proper naming conventions [Feature]: Asset generator improvements (SVG, .ico output)

3 participants