024673dcbe
## Summary Adds a safe in-app updater for ThreadPilot. This PR does not bump the app version and does not prepare a release; version and release metadata will be handled separately for v1.4.0. ## Type of Change - [x] Feature - [x] Security hardening - [x] Documentation - [x] Added/updated tests ## Update flow - Checks for updates on demand from Settings. - Performs background startup checks only when enabled and the last check is older than the configured interval. - Defaults to a 7-day interval. - Excludes prereleases by default. - Notifies users when an update is available. - Requires explicit user action before download/install. ## Security and safety - Uses release metadata from the official `PrimeBuild-pc/ThreadPilot` repository only. - Selects safe ThreadPilot installer assets from GitHub HTTPS release assets. - Downloads into a ThreadPilot-owned temp update directory. - Verifies SHA256 checksums when `SHA256SUMS.txt` is available. - Rejects checksum mismatches. - Performs best-effort Authenticode verification and rejects explicitly invalid signatures. - Starts the installer elevated without shell command construction. - Prevents concurrent install attempts. ## User data preservation - Update flow does not delete AppData, settings, profiles, CPU masks, rules, custom/imported power plans, or logs. - Only updater temp files are cleaned. - Full uninstall behavior remains separate. ## Validation - `dotnet restore ThreadPilot_1.sln`: passed - `dotnet build ThreadPilot_1.sln`: passed, 0 warnings, 0 errors - `dotnet test ThreadPilot_1.sln`: passed, 537 tests ## Release note This PR intentionally leaves `ThreadPilot.csproj` at `1.3.1`. The `1.4.0` version bump, changelog, packaging metadata, and tag should happen in a separate release-prep branch after this PR is merged.
Documentation
This folder contains release and engineering documentation for ThreadPilot.
Core Documents
- Architecture: reference/ARCHITECTURE_GUIDE.md
- API reference: reference/API_REFERENCE.md
- Developer guide: reference/DEVELOPER_GUIDE.md
- Project structure: reference/PROJECT_STRUCTURE.md
- UI style guide: reference/UI_STYLE_GUIDE.md
- Advanced CPU features: reference/ADVANCED_CPU_FEATURES.md
- Game boost validation: reference/GAME_BOOST_VALIDATION.md
- Exception handling policy: reference/EXCEPTION_HANDLING_POLICY.md
- Safe Win32 interop examples: reference/SAFE_WIN32_INTEROP_EXAMPLES.md
- Performance guide: reference/PERFORMANCE.md
- Development operations guide: reference/DEVELOPMENT.md
- Runtime GC template: reference/runtimeconfig.template.json
- Packaging guide: release/PACKAGING.md
- Release runbook: release/RELEASE_RUNBOOK.md
- Release notes template: release/RELEASE_NOTES_TEMPLATE.md
- Go/No-Go matrix: release/GO_NO_GO_MATRIX.md
Release and Governance
-
Gitleaks scan report: audits/GITLEAKS_REPORT_2026-04-15.json
-
README audit report: audits/README_AUDIT_REPORT_2026-04-15.md
-
Release execution log (2026-04-15): release/RELEASE_EXECUTION_LOG_2026-04-15.md
Migration Note
Repository documentation is maintained under docs/ and updated with each release.