release: v0.7.5 stable — promote develop to main #13

Merged
Muyue merged 2 commits from develop into main 2026-04-27 11:41:40 +00:00
Owner

Promotion bêta → stable

Depuis la dernière release stable v0.7.4 :

v0.7.5 — fix Windows install + double-clic (PR #12)

  • Double-clic sur le raccourci ouvre l'app sans message "This is a command line tool" (huh skip si pas de TTY + Windows builds en -H=windowsgui)
  • Sous-commandes CLI continuent d'afficher leur sortie quand lancées depuis cmd.exe / PowerShell, grâce à AttachConsole(ATTACH_PARENT_PROCESS)
  • Commande muyue reconnue après install : install-shortcuts crée un muyue.exe canonique + imprime $env:Path += '...' pour activer la session courante
  • Snippet d'install passe à 5 lignes (ajout de la mise à jour PATH session)

Merger ce PR pour que ci-main.yml :

  • tag v0.7.5 stable
  • génère les .syso icône via rsrc
  • build les 6 binaires (le .exe Windows portera l'icône Muyue ET sera GUI-subsystem)
  • crée la Publication Gitea avec changelog + checksums
  • mette à jour CHANGELOG.md

Fast-forward propre — aucun fix supplémentaire dans ce PR.

## Promotion bêta → stable Depuis la dernière release stable v0.7.4 : ### v0.7.5 — fix Windows install + double-clic (PR #12) - **Double-clic** sur le raccourci ouvre l'app sans message *"This is a command line tool"* (huh skip si pas de TTY + Windows builds en `-H=windowsgui`) - **Sous-commandes CLI** continuent d'afficher leur sortie quand lancées depuis cmd.exe / PowerShell, grâce à `AttachConsole(ATTACH_PARENT_PROCESS)` - **Commande `muyue` reconnue** après install : `install-shortcuts` crée un `muyue.exe` canonique + imprime `$env:Path += '...'` pour activer la session courante - Snippet d'install passe à 5 lignes (ajout de la mise à jour PATH session) --- Merger ce PR pour que `ci-main.yml` : - tag `v0.7.5` stable - génère les `.syso` icône via `rsrc` - build les 6 binaires (le `.exe` Windows portera l'icône Muyue ET sera GUI-subsystem) - crée la **Publication** Gitea avec changelog + checksums - mette à jour `CHANGELOG.md` Fast-forward propre — aucun fix supplémentaire dans ce PR.
Muyue added 2 commits 2026-04-27 11:41:30 +00:00
fix(windows): GUI subsystem + parent-console attach + canonical muyue.exe (v0.7.5)
All checks were successful
PR Check / check (pull_request) Successful in 58s
79e467c32a
Three Windows install/launch issues reported by the user:

1. Double-click on Desktop shortcut → dialog "This is a command line
   tool. You need to open cmd.exe and run it from there."
   Cause: charmbracelet/huh detects no TTY when launched via Explorer
   and aborts. Fix:
   - cmd/muyue/commands/root.go: skip RunFirstTimeSetup when
     os.Stdin is not a character device; persist config.Default()
     and let the React onboarding wizard handle first-run UX.
   - ci-{main,develop}.yml: build Windows binaries with
     -ldflags="-H=windowsgui" so the .exe is a GUI subsystem app —
     no console window flashes on double-click.

2. CLI sub-commands (`muyue scan`, `muyue install-shortcuts`, etc.)
   would lose all output under -H=windowsgui when launched from
   cmd.exe / PowerShell. Mitigation:
   - cmd/muyue/console_windows.go (new, build-tagged): on init(),
     call kernel32!AttachConsole(ATTACH_PARENT_PROCESS). If the
     parent has a console, rebind os.Stdout/os.Stderr/os.Stdin to
     it and call log.SetOutput(os.Stderr) so existing log.Printf
     calls surface. If no parent console (Explorer), exit silently.

3. After install, `muyue` not recognized in PowerShell.
   Causes: (a) the extracted binary is muyue-windows-amd64.exe, not
   muyue.exe; (b) the user PATH update by install-shortcuts doesn't
   propagate to the existing PowerShell session.
   Fix in install-shortcuts:
   - Copy self to <installDir>/muyue.exe (rename impossible — the
     running .exe is locked on Windows) so `muyue` resolves once
     PATH is set.
   - Update Desktop + Start Menu .lnk to target the canonical
     muyue.exe rather than the platform-suffixed binary.
   - Print the line `$env:Path += ';<installDir>'` for the user to
     paste, refreshing the current session immediately.
   - ci-main.yml install snippet bumps to 5 lines, last being
     `$env:Path += ";$dest"`.

- internal/version/version.go: 0.7.4 → 0.7.5
- CHANGELOG.md: v0.7.5 entry covers all three fixes
Merge pull request 'fix(windows): GUI subsystem + AttachConsole + muyue.exe canonical (v0.7.5)' (#12) from release/v0.7.5 into develop
Some checks failed
PR Check / check (pull_request) Has been cancelled
Beta Release / beta (push) Has been cancelled
87e606c853
Reviewed-on: #12
Muyue merged commit b3a9a49680 into main 2026-04-27 11:41:40 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Muyue/MuyueWorkspace#13