feat: integrate Muyue logo (icon embedded + web favicon) v0.7.4 #10
Reference in New Issue
Block a user
Delete Branch "release/v0.7.4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Logo Muyue
L'utilisateur a déposé
LogoMuyue.pngà la racine du projet. Cette PR l'intègre partout où il a un sens.Assets générés (Pillow)
assets/muyue.ico— multi-résolution 16/24/32/48/64/128/256 pxassets/muyue-{16,32,64,128,256,512}.png— déclinaisons propresLogoMuyue.pngconservé à la racine comme source de vérité (912×950 RGBA)Binaire Windows
Le
.exeWindows porte maintenant l'icône Muyue dans l'Explorateur, sur la barre des tâches, et automatiquement sur les raccourcis créés parinstall-shortcuts.Mécanisme : étape CI ajoutée avant
go build(surci-main.ymletci-develop.yml) :Go lie automatiquement
*_windows_<arch>.sysolors d'un build pour cette cible. Pas de dépendance ajoutée àgo.mod; les.sysosont gitignorés (regénérés au build).UI web
web/public/favicon-{16,32}.png+muyue.png+muyue-64.pngweb/index.html: balises<link rel="icon">réelles (16/32 PNG + apple-touch 256 px), suppression du SVG hexagone placeholderApp.jsx: logo 22×22 px affiché à côté du wordmark "MUYUE" dans le headerInstall Windows — petit fix incrémental
La 1ʳᵉ ligne du snippet de
ci-main.ymlest désormais idempotente :Évite le
Expand-Archive : ... existe déjàrapporté sur v0.7.2.Versioning
Test plan
*.sysocôté Linux, donc inchangé)rsrcgénère bien les.sysoet que le binairemuyue-windows-amd64.exemontre l'icône dans l'Explorateurinstall-shortcutsproduit des.lnkportant l'icône embarquéeLogo dropped at project root by user. Bake it everywhere it matters: Assets: - assets/muyue.ico — multi-res (16/24/32/48/64/128/256) generated via PIL - assets/muyue-{16,32,64,128,256,512}.png — clean PNG resizes - LogoMuyue.png kept at root as the source of truth Windows binary (.exe): - CI runs `rsrc -ico assets/muyue.ico -arch {amd64,arm64} -o cmd/muyue/rsrc_windows_{amd64,arm64}.syso` before `go build` (both ci-main.yml and ci-develop.yml) - Go automatically links *.syso files matching the target GOOS/GOARCH — no code change in the cmd/muyue main package - .syso files are gitignored: regenerated at every build, never committed - Existing install-shortcuts subcommand already uses IconLocation = "$exe,0" so the embedded icon flows automatically into Desktop + Start Menu .lnk files Web UI: - web/public/favicon-{16,32}.png + muyue.png + muyue-64.png - web/index.html: real <link rel="icon"> tags (16/32 PNG + apple-touch), replacing the placeholder SVG hexagon - App.jsx header: 22×22 logo image rendered next to the "MUYUE" wordmark (rounded 4px corners for visual consistency with the source logo) Install snippet (ci-main.yml changelog template): - Idempotent first line: `New-Item -ItemType Directory -Force -Path $dest` to handle the case where the user re-runs after a partial install Versioning unchanged (still v0.7.3 — these additions stay on the same release branch / PR #9).