Home

xmn / bettertrumpet

publicxammen/BetterTrumpet· sync paused
Overview Code History Branches Pull requestsIssuesInsights
master
HomeOverview Code PRsIssues

fix: disable GitHub updater on Store builds, force UTF-8 CLI output

2 months ago

7afe27a
Authored
xammen7/28/2026, 9:18:51 AM
Two unrelated fixes that were sitting uncommitted in the tree.

Microsoft Store owns updates for packaged installs, so when
App.HasIdentity is true the GitHub/Inno UpdateService is never
initialized, the tray "check for updates" action is hidden, and the
update settings page is dropped from the Application category.
Unpackaged GitHub/Chocolatey/Winget builds are unaffected.

CLI output now attaches the parent console and sets UTF-8 encoding
without a BOM. A redirected stdout was falling back to the OEM
codepage, so box-drawing characters in the help banner and accented
device names arrived as mojibake in bt.cmd. bt.cmd also stops wrapping
successful non-JSON output in an error object, so `bt help` and
`bt version` print as plain text.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Parentf0fce03

5 files changed
  • .gitignore+1−0
  • AGENTS.md+4−0
  • EarTrumpet/App.xaml.cs+27−9
  • EarTrumpet/CLI/CliEntryPoint.cs+28−4
  • bt.cmd+1−1