Skip to content

Fix installer progress and silent mode#16

Merged
tsuchim merged 2 commits into
mainfrom
devel
May 18, 2026
Merged

Fix installer progress and silent mode#16
tsuchim merged 2 commits into
mainfrom
devel

Conversation

@tsuchim
Copy link
Copy Markdown
Owner

@tsuchim tsuchim commented May 17, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 17, 2026 08:32
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses the blank installer-progress window observed in v0.3.1/v0.3.2 by streaming setup log lines into the UI as the installer runs, moving the long-running install/uninstall work off the UI thread, and emitting structured per-step progress from InstallerStateMachine. It also revises the v0.3.3 release notes/README to drop the prior winget submission claim and adds tests for the new progress and log behavior.

Changes:

  • SetupLog now appends each line to disk immediately, exposes a LineWritten event, and serializes access with a lock; SetupStartup produces the initial visible lines.
  • InstallerStateMachine raises Progress events (Starting/Completed/Failed/Warning) per step and tags verification failures with their step; SetupForm subscribes to both LineWritten (to append to the UI TextBox via BeginInvoke) and Progress, and wraps InstallAsync/UninstallAsync in Task.Run so the form can repaint.
  • Documentation rolled from v0.3.2 to v0.3.3, removing winget submission references and replacing the v0.3.2 release draft with v0.3.3.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/PriorityGear.Setup/SetupLog.cs Adds locking, immediate file append per line, and a LineWritten event.
src/PriorityGear.Setup/SetupStartup.cs New helper producing the initial visible log lines and mode name.
src/PriorityGear.Setup/InstallerStateMachine.cs New InstallerProgress/InstallerProgressKind and per-step Progress event with step-tagged Fail overload.
src/PriorityGear.Setup/Program.cs Subscribes UI to log lines, runs install/uninstall on a background task, emits start banner, and logs progress events.
tests/PriorityGear.Setup.Tests/SetupLogTests.cs Covers immediate flush, event invocation, and initial-line content.
tests/PriorityGear.Setup.Tests/InstallerStateMachineTests.cs Covers success ordering, failure stop-on-error, and cleanup warning paths.
README.md / README.ja.md / docs/installer.md Bump to v0.3.3 and remove winget submission references.
docs/release-drafts/v0.3.3.md New v0.3.3 release notes focused on progress visibility fix.
docs/release-drafts/v0.3.2.md Deleted prior v0.3.2 release draft.

Comment thread src/PriorityGear.Setup/SetupLog.cs Outdated
Comment thread src/PriorityGear.Setup/SetupLog.cs Outdated
Comment thread src/PriorityGear.Setup/Program.cs
Comment thread src/PriorityGear.Setup/Program.cs Outdated
Comment thread src/PriorityGear.Setup/InstallerStateMachine.cs Outdated
@tsuchim tsuchim merged commit 10ba6ec into main May 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants