Commit Graph

29 Commits

Author SHA1 Message Date
Prime Build d730260541 Prepare ThreadPilot 1.7.0 gaming and signing release (#51) 2026-08-13 01:50:48 +02:00
Prime Build 0c7b2983f9 Improve meaningful core coverage and enforce its floor (#38)
* test: cover log file lifecycle

* ci: enforce meaningful coverage floor
2026-07-12 13:43:22 +02:00
Prime Build c058fef7d5 Fix v1.3.1 localization and installer cleanup (#26)
## Summary

Fixes the incomplete Simplified Chinese localization shipped in v1.3.0 and prepares v1.3.1.

## Changes

- Completed zh-CN localization coverage across the main UI.
- Added/updated localization keys for primary views, tray/status text, notifications, and settings.
- Kept en-US as the default language.
- Updated version metadata to 1.3.1.
- Changed installer display name to ThreadPilot while keeping version metadata separate.
- Added guarded cleanup for obsolete ThreadPilot 0.1.0-beta uninstall entry.
- Improved uninstall cleanup for ThreadPilot AppData, startup task, and HKCU Run entry.
- Added localization and packaging metadata tests.

## Validation

- dotnet build ThreadPilot_1.sln: passed, 0 warnings
- dotnet test ThreadPilot_1.sln: passed, 524 tests

## Safety

- No change to elevation behavior.
- No change to affinity/process control behavior.
- No change to power plan or system tweak behavior.
- Normal install/update preserves user settings.
- Full uninstall removes ThreadPilot-owned AppData for the uninstalling user.
2026-06-07 04:33:51 +02:00
PrimeBuild-pc e8ba1a7e74 Finalize v1.2.0 release artifact contract 2026-05-23 15:43:12 +02:00
PrimeBuild-pc 65f8c08f26 Clean up release workflow assets 2026-05-16 23:16:10 +02:00
PrimeBuild-pc 88dde7cc9b Pin GitHub Actions Windows runners to windows-2022 2026-05-12 21:41:44 +02:00
PrimeBuild-pc 0e63b22e3b Update release.yml 2026-05-10 00:30:41 +02:00
PrimeBuild-pc 2e98dda635 Fix git-cliff installation in release workflow 2026-05-09 23:49:09 +02:00
PrimeBuild-pc 69cc510bc1 Harden services and release coverage pipeline 2026-04-21 19:50:56 +02:00
PrimeBuild-pc 8901150818 Add winget and Chocolatey publish automation
Add automated publish jobs to the release workflow and supporting scripts/docs. .github/workflows/release.yml gains publish-winget and publish-chocolatey jobs that gate on repository secrets, download release artifacts, and either submit a winget-pkgs PR or push a Chocolatey package when the release succeeds. Added build/submit-winget-pr.ps1 to create a fork branch, add manifests and open a PR to microsoft/winget-pkgs, and build/publish-chocolatey.ps1 to pack and push a Chocolatey nupkg (handling idempotent already-exists cases). README.md and docs/release/PACKAGING.md updated to document the new automation and required secrets (WINGET_GITHUB_TOKEN, WINGET_FORK_OWNER, CHOCOLATEY_API_KEY).
2026-04-21 03:01:07 +02:00
PrimeBuild-pc a27906291c Pin git-cliff; remove vendored gitleaks-bin
Replace Docker/action-based changelog generation with a runner-native, pinned git-cliff install (GIT_CLIFF_VERSION=2.10.0) and checksum verification in the release workflow. Update the changelog step to run git-cliff and emit release notes to GITHUB_OUTPUT.

Add .gitignore patterns to prevent committing gitleaks binaries/archives and remove the vendored gitleaks-bin directory and files. Add build/close-secret-scanning-alerts.ps1: a gh-cli-driven PowerShell tool to list and optionally resolve open GitHub secret-scanning alerts (dry-run by default).

Update CONTRIBUTING, RELEASE_RUNBOOK, COMPLIANCE_AUDIT, and SECURITY_CHECKLIST docs with a security tooling policy: do not vendor scanner binaries, install scanners at CI runtime, and document the remediation rationale. These changes address recurring secret-scanning false positives and improve release reproducibility and supply-chain hygiene.
2026-04-21 02:49:38 +02:00
PrimeBuild-pc 0639e0858c chore(release): prepare v1.1.2 release alignment 2026-04-21 01:12:41 +02:00
PrimeBuild-pc 8adea37188 Make installers unattended; add release asset validation
Switch the release job runner to ubuntu-latest and add a validation step to ensure required release artifacts exist (installer .exe, package .zip, SHA256SUMS, winget manifests, and SBOM). Update Installer/setup.iss to disable the Ready page and remove the post-install auto-launch so package-manager installs remain unattended. Improve Chocolatey scripts: add additional silent flags and include common restart exit codes (3010, 1641) for both install and uninstall; make uninstall parsing robust by extracting the executable and base args from the registry UninstallString before invoking Uninstall-ChocolateyPackage.
2026-04-20 22:26:56 +02:00
PrimeBuild-pc 63886b497f fix(release): resolve sbom manifest path under artifacts 2026-04-16 02:18:06 +02:00
PrimeBuild-pc 4897aa25db fix(release): stabilize sbom artifact path and upload 2026-04-16 02:07:04 +02:00
PrimeBuild-pc efb757d733 Add ElevatedTaskService and remove MSIX packaging
Introduce IElevatedTaskService and ElevatedTaskService to manage scheduled-task based elevated launch and autostart. Update App.xaml.cs to bootstrap elevation, attempt managed elevated launch, and handle task registration markers. Refactor AutostartService to delegate autostart operations to the elevated task service, remove legacy registry usage where appropriate, add logging, and update DI registration and unit tests. Remove MSIX packaging support and related tooling: delete build/build-msix.ps1, remove MSIX publish/validation/upload steps from GitHub Actions, drop MSIX-related csproj targets and EnableMsixTooling, and update docs/README/.gitignore to no longer reference MSIX artifacts.
2026-04-16 00:31:19 +02:00
PrimeBuild-pc 2806662072 Use RUNNER_TEMP for gitleaks and add flags
Download and extract gitleaks into a temporary RUNNER_TEMP directory ($toolDir) and remove any existing copy before extraction. Adjust Expand-Archive/tar commands to use $toolDir and resolve the executable from that path. Add a step to remove vendored tool docs from the scan scope to avoid known false positives. Run gitleaks with --no-git and --exit-code 1 so the scan targets the working tree and fails the job on findings.
2026-04-15 23:47:18 +02:00
PrimeBuild-pc c9253f879d Enhance CI/release workflow and app robustness
Add comprehensive CI and release improvements (coverage collection, Codecov upload, SBOM generation), split release workflow into build/smoke-test/release stages with deterministic version resolution, artifact uploads, winget manifest updates and changelog generation. Add a pre-commit hook to block large or unwanted artifacts. Introduce runtime improvements: smoke-test startup mode, improved unhandled/dispatcher/task-exception reporting, ThreadPilotException error codes, single-instance behavior adjustments, and logging enhancements. UI and UX changes include a new Logs tab and LogViewer wiring, DWM title-bar theming helper, navigation serialization/unsaved-changes guard, system-tray update backoff logic, and related viewmodel/service integrations. Also add installer template, helper classes, tests, docs, packaging and build scripts, and minor .gitignore updates.
2026-04-15 22:38:35 +02:00
PrimeBuild-pc 1ab85b21bd Release 1.1.1: installer, elevation & onboarding
Bump release to v1.1.1 and add release/build packaging, installer and onboarding enhancements. Key changes:

- Version bump across csproj, README and release assets to 1.1.1.
- CI/workflow: copy bundled Powerplans into single-file output, install Inno Setup, build Inno Setup installer, include installer artifacts in GitHub release, and stage unified package zips with uninstall/license files.
- Installer: update InstallScript (setup.iss) to point to staged artifacts, include Powerplans folder, and output installer to artifacts/release/installer.
- App startup/elevation: requireAdministrator manifest and App.xaml.cs now requests elevation early, terminating non-elevated instance when elevation is requested/declined.
- UX: add Performance first-run onboarding overlay (modal with blurred background), updated loading overlay visuals, and related MainWindow logic to show/hide intro and persist seen state.
- Settings & config: implement export/import configuration bundle (JSON) with Save/Open dialogs, add ReplaceConfigurationAsync and CloneConfiguration in association service, and adjust settings view labels.
- Power plan features: add PowerPlanService.AddCustomPowerPlanFileAsync and UI/command to add .pow files; adjust Import/Apply button labels.
- Performance tweaks: reduce power plan change delay from 1000ms to 250ms in config, models and viewmodels.
- Theme detection: improve ThemeService to resolve registry values and fallback to system theme helper.
- Misc: various logging/status improvements, packaging script fixes (build-release/build-msix), and added package-release-zips script.

These changes prepare the project for a formal 1.1.1 release with installer distribution, improved elevation handling and onboarding, plus enhanced import/export and custom power plan support.
2026-04-14 03:22:06 +02:00
PrimeBuild-pc 679d66afaf fix of the CodeQL warning 2026-04-13 18:26:36 +02:00
PrimeBuild-pc 3d00d00cb0 chore: safe root cleanup phase 1 - Refactor .gitignore (più leggibile + pattern moderni) - Move build scripts → build/ - Move installer → Installer/ - Move ico.ico and Powerplans → assets/ - Move TRADEMARK.md → docs/legal/TRADEMARK.md (with root bridge) - Update all internal references (csproj, XAML, C#, .iss, .ps1, docs) - Verified: restore + build + test + publish (SingleFile + MSIX) OK" 2026-04-13 12:39:05 +02:00
PrimeBuild-pc 3dcec45c1b chore: final enterprise polish and release preparation for v1.1.0 2026-04-12 17:46:38 +02:00
PrimeBuild-pc 8a061c4ab0 chore: initial enterprise setup - governance, CI/CD, security hardening batch 1 2026-04-12 16:34:25 +02:00
PrimeBuild-pc 4d0642d3d0 Update ci-devsecops.yml 2026-04-12 01:08:01 +02:00
PrimeBuild-pc 4865b62108 Merge branch 'main' of https://github.com/PrimeBuild-pc/ThreadPilot 2026-04-11 17:41:21 +02:00
PrimeBuild-pc 7be4cef428 Enhance theming, UI behavior, perf & add CI
Multiple improvements across theming, UI flow, performance refresh logic, and CI:

- Add CI DevSecOps GH Action workflow: .NET restore/build (Debug/Release), dependency audit, and gitleaks secret scan.
- Theming: preload and apply theme at startup; add HasUserThemePreference to settings model; detect legacy theme flag when loading settings; ThemeService now reads system theme from registry (GetSystemUsesDarkTheme) and exposes system-use check.
- Richer theme resources: major updates to FluentDark.xaml and FluentLight.xaml (expanded color palette, control styles/templates, system brushes) to modernize visuals and controls.
- Startup/UI behavior: improved autostart/minimize-to-tray handling, consistent ShowInTaskbar/Visibility logic, OnSourceInitialized hook to reapply caption theme, and apply DWM immersive dark caption via DwmSetWindowAttribute.
- Robust UI error handling: throttle dispatcher exception dialog to avoid multiple dialogs using an interlocked flag and short time window.
- MainWindow refactor: introduce ShowWindowFromTray helper, unify show/activate flows, apply caption theming, and adjust several shortcut handlers to use the helper.
- Tab switching: add SemaphoreSlim guard and improved selection logic to debounce concurrent tab changes; prompt/save/discard unsaved settings when switching away from Settings; dispose semaphore on shutdown.
- PerformanceViewModel: debounce/gate top-process refreshes with SemaphoreSlim and a pending flag to avoid overlapping refreshes; update TopCpuProcesses on UI dispatcher and refresh selected process impact safely.
- Misc: small XAML cleanups (Settings tab header simplification), add COMPLIANCE_AUDIT.md to .gitignore, and various logging/error message tweaks.

These changes aim to reduce UI flicker on startup, respect user/system theme preferences, harden UI interactions, prevent concurrent refresh race conditions, and add CI/DevSecOps checks.
2026-04-11 17:41:13 +02:00
Prime Build 91dc0afda2 Refactor .NET build workflow and add build step 2026-04-10 04:36:21 +02:00
Prime Build 7bab0db223 Update dotnet-desktop.yml 2026-04-10 04:34:24 +02:00
Prime Build c293d3e305 Add GitHub Actions workflow for .NET Core Desktop (#3)
This workflow builds, tests, signs, and packages a .NET Core desktop application using GitHub Actions.
2026-04-10 04:31:41 +02:00