Skip to content

build(package): slim shipped media from 21 MB to 11 MB - #166

Merged
VPDPersonal merged 1 commit into
mainfrom
build/package-media-slim
Aug 6, 2026
Merged

build(package): slim shipped media from 21 MB to 11 MB#166
VPDPersonal merged 1 commit into
mainfrom
build/package-media-slim

Conversation

@VPDPersonal

Copy link
Copy Markdown
Owner

Slims the media shipped inside the UPM package from 21 MB to 11 MB — every user downloads and imports this on install.

Summary

  • README banner GIF (6.0 MB) moved out of the package to repo-level docs/images/. All four READMEs (root README.md/README_RU.md + Documentation/EN|RU/README.md) now embed it via the absolute raw.githubusercontent.com/.../main/docs/images/... URL. Unity does not render markdown inside an installed package, so package users lose nothing; GitHub rendering is unchanged. The orphaned .gif.meta is removed.
  • Four aspid_icon_medium_* status icons downscaled 1022x1011 → 256x253 (~1.1 MB → ~90 KB each). Files renamed to match the actual new size; .meta files renamed alongside via git mv, so GUIDs are preserved. References updated in Aspid-FastTools-Default-Dark.uss (resource() calls) and Aspid-FastTools-Welcome.uxml (project:// URLs — GUIDs untouched).
Metric Before After
📦 Package (tech.aspid.fasttools) 21 MB 11 MB
🖼️ Banner GIF in package 6.0 MB 0 (moved to docs/images/)
🧿 4 status icons ~4.4 MB ~0.37 MB

Notes for review

  • ⚠️ Soft conflict with docs/release-checklist-refresh: both branches touch the README files, but different sections (this one only rewrites the banner <img src> on line 1). Merge order should not matter; resolve trivially if it does.
  • 👀 After merge, visually check the status icons in the SerializeReference window (dot canvas / status indicators): 256px is plenty for small indicators, but a quick look confirms nothing regressed.
  • ℹ️ aspid_icon_window_tab_green_1022x1011.png (583 KB) is a separate icon outside the agreed scope — intentionally untouched.
  • ℹ️ Icon .meta files keep maxTextureSize: 2048 — irrelevant now that the source files are 256px; the on-disk size is what matters.
🇷🇺 Описание на русском

Уменьшает медиа внутри UPM-пакета с 21 МБ до 11 МБ — это скачивает и импортирует каждый пользователь при установке.

Кратко

  • GIF-баннер README (6,0 МБ) вынесен из пакета в репо-уровневую папку docs/images/. Все четыре README (корневые README.md/README_RU.md + Documentation/EN|RU/README.md) теперь вставляют его по абсолютному URL raw.githubusercontent.com/.../main/docs/images/.... Unity не рендерит markdown внутри установленного пакета, так что пользователи пакета ничего не теряют; на GitHub всё выглядит как раньше. Осиротевший .gif.meta удалён.
  • Четыре статус-иконки aspid_icon_medium_* ужаты 1022x1011 → 256x253 (~1,1 МБ → ~90 КБ каждая). Файлы переименованы под фактический новый размер; .meta переименованы синхронно через git mv, поэтому GUID сохранены. Ссылки обновлены в Aspid-FastTools-Default-Dark.uss (resource()) и Aspid-FastTools-Welcome.uxml (project://-URL — GUID не тронуты).

Заметки для ревью

  • ⚠️ Мягкий конфликт с docs/release-checklist-refresh: обе ветки трогают README, но разные секции (эта правит только <img src> баннера в первой строке). Порядок merge не важен; при конфликте решается тривиально.
  • 👀 После merge визуально проверить иконки статусов в окне SerializeReference: 256px для мелких индикаторов достаточно, но быстрый взгляд подтвердит, что ничего не деградировало.
  • ℹ️ aspid_icon_window_tab_green_1022x1011.png (583 КБ) — отдельная иконка вне согласованного скоупа, намеренно не тронута.
  • ℹ️ В .meta иконок остался maxTextureSize: 2048 — теперь неактуален, раз исходники 256px; важен размер файла на диске.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LsVLAxv4eia9yv4TjSaP3G

Two media offenders shipped inside the UPM package that every user
downloads and imports:

- README banner GIF (6.0 MB): only used by README files, which Unity
  never renders inside an installed package. Moved to repo-level
  docs/images/ (outside the package) and pointed all four READMEs at
  the absolute raw.githubusercontent.com URL; GitHub rendering is
  unchanged.
- Four aspid_icon_medium_* status icons (~1.1 MB each at 1022x1011):
  used only as small status indicators. Downscaled in-place to 256x253
  (~90 KB each), renamed to match the new size, .meta files renamed
  alongside so GUIDs are preserved. Updated the resource() references
  in Aspid-FastTools-Default-Dark.uss and the project:// URLs in
  Aspid-FastTools-Welcome.uxml.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LsVLAxv4eia9yv4TjSaP3G
@VPDPersonal VPDPersonal added type: chore Maintenance, version bumps, tooling status: work-in-progress Draft / not ready for review area: editor Editor-only code area: docs Repository documentation (README, CHANGELOG, docs/) labels Aug 6, 2026
@VPDPersonal
VPDPersonal marked this pull request as ready for review August 6, 2026 18:45
@VPDPersonal
VPDPersonal merged commit ffd3bfa into main Aug 6, 2026
@VPDPersonal
VPDPersonal deleted the build/package-media-slim branch August 6, 2026 19:03
VPDPersonal added a commit that referenced this pull request Aug 6, 2026
build(package): slim shipped media from 21 MB to 11 MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Repository documentation (README, CHANGELOG, docs/) area: editor Editor-only code status: work-in-progress Draft / not ready for review type: chore Maintenance, version bumps, tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant