diff --git a/.gitea/workflows/ci-develop.yml b/.gitea/workflows/ci-develop.yml index 7f461e2..9b86164 100644 --- a/.gitea/workflows/ci-develop.yml +++ b/.gitea/workflows/ci-develop.yml @@ -68,6 +68,13 @@ jobs: echo "beta_num=${BETA_NUM}" >> $GITHUB_OUTPUT echo "Building beta release: ${VERSION}" + - name: Generate Windows resource (icon) + run: | + go install github.com/akavel/rsrc@latest + RSRC="$(go env GOPATH)/bin/rsrc" + $RSRC -ico assets/muyue.ico -arch amd64 -o cmd/muyue/rsrc_windows_amd64.syso + $RSRC -ico assets/muyue.ico -arch arm64 -o cmd/muyue/rsrc_windows_arm64.syso + - name: Build (all platforms) run: | mkdir -p dist diff --git a/.gitea/workflows/ci-main.yml b/.gitea/workflows/ci-main.yml index 7d5e9d8..5fd9821 100644 --- a/.gitea/workflows/ci-main.yml +++ b/.gitea/workflows/ci-main.yml @@ -64,6 +64,13 @@ jobs: echo "base=${BASE_VERSION}" >> $GITHUB_OUTPUT echo "Building stable release: ${VERSION}" + - name: Generate Windows resource (icon) + run: | + go install github.com/akavel/rsrc@latest + RSRC="$(go env GOPATH)/bin/rsrc" + $RSRC -ico assets/muyue.ico -arch amd64 -o cmd/muyue/rsrc_windows_amd64.syso + $RSRC -ico assets/muyue.ico -arch arm64 -o cmd/muyue/rsrc_windows_arm64.syso + - name: Build (all platforms) run: | mkdir -p dist @@ -140,7 +147,7 @@ jobs: echo "" echo "**Windows (x86_64)** — sans privilèges admin, crée les raccourcis Bureau + Menu Démarrer :" echo "\`\`\`powershell" - echo "\$dest = \"\$env:LOCALAPPDATA\\Muyue\"" + echo "\$dest = \"\$env:LOCALAPPDATA\\Muyue\"; New-Item -ItemType Directory -Force -Path \$dest | Out-Null" echo "Invoke-WebRequest -Uri \"${DL_URL}/muyue-windows-amd64.zip\" -OutFile \"\$env:TEMP\\muyue.zip\"" echo "Expand-Archive -Path \"\$env:TEMP\\muyue.zip\" -DestinationPath \$dest -Force" echo "& \"\$dest\\muyue-windows-amd64.exe\" install-shortcuts" diff --git a/.gitignore b/.gitignore index 5b64cac..35213a3 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ Thumbs.db *.exe *.test *.out +*.syso vendor/ # Config with secrets diff --git a/CHANGELOG.md b/CHANGELOG.md index f8d019f..a7920aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## v0.7.4 + +### Logo Muyue intégré + +- `LogoMuyue.png` ajouté à la racine + déclinaisons générées dans `assets/` (16/32/64/128/256/512 px) et `assets/muyue.ico` (multi-résolution 16-256 px). +- **Binaire Windows** : icône embarquée comme ressource Windows via `github.com/akavel/rsrc` au build CI (génération de `cmd/muyue/rsrc_windows_{amd64,arm64}.syso`). Conséquences : + - Explorateur Windows affiche l'icône Muyue sur le `.exe` + - Les raccourcis créés par `install-shortcuts` héritent de l'icône (via `IconLocation = "$exe,0"`) + - Aucune dépendance Go à runtime ; les `.syso` sont gitignorés et regénérés à chaque build +- **UI web** : favicon réel (16/32 px), apple-touch-icon (256 px) et logo affiché dans le header à côté de "MUYUE". +- Snippet d'install Windows : 1ʳᵉ ligne idempotente (`New-Item -ItemType Directory -Force`) pour gérer le cas d'une ré-exécution après install partielle. +- Préservation du logo source en pleine résolution (912×950 RGBA) — pas de perte d'information. + ## v0.7.3 ### Onboarding — focus MiniMax + MiMo diff --git a/LogoMuyue.png b/LogoMuyue.png new file mode 100644 index 0000000..1733123 Binary files /dev/null and b/LogoMuyue.png differ diff --git a/assets/muyue-128.png b/assets/muyue-128.png new file mode 100644 index 0000000..18d863c Binary files /dev/null and b/assets/muyue-128.png differ diff --git a/assets/muyue-16.png b/assets/muyue-16.png new file mode 100644 index 0000000..c0e28a0 Binary files /dev/null and b/assets/muyue-16.png differ diff --git a/assets/muyue-256.png b/assets/muyue-256.png new file mode 100644 index 0000000..53b48a1 Binary files /dev/null and b/assets/muyue-256.png differ diff --git a/assets/muyue-32.png b/assets/muyue-32.png new file mode 100644 index 0000000..899347e Binary files /dev/null and b/assets/muyue-32.png differ diff --git a/assets/muyue-512.png b/assets/muyue-512.png new file mode 100644 index 0000000..7a55f5f Binary files /dev/null and b/assets/muyue-512.png differ diff --git a/assets/muyue-64.png b/assets/muyue-64.png new file mode 100644 index 0000000..ac3076b Binary files /dev/null and b/assets/muyue-64.png differ diff --git a/assets/muyue.ico b/assets/muyue.ico new file mode 100644 index 0000000..d4dfca1 Binary files /dev/null and b/assets/muyue.ico differ diff --git a/internal/version/version.go b/internal/version/version.go index 18e7098..e1936aa 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -7,7 +7,7 @@ import ( const ( Name = "muyue" - Version = "0.7.3" + Version = "0.7.4" Author = "La Légion de Muyue" ) diff --git a/web/index.html b/web/index.html index baf28bb..37bc5bd 100644 --- a/web/index.html +++ b/web/index.html @@ -4,8 +4,11 @@ -