Files
ThreadPilot/build/install-git-hooks.ps1
T
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

19 lines
572 B
PowerShell

$ErrorActionPreference = "Stop"
$scriptRoot = Split-Path -Parent $PSCommandPath
$projectRoot = Split-Path -Parent $scriptRoot
Set-Location -LiteralPath $projectRoot
$hooksPath = ".githooks"
if (-not (Test-Path -LiteralPath $hooksPath)) {
throw "Hooks directory not found: $hooksPath"
}
git config core.hooksPath $hooksPath
if ($LASTEXITCODE -ne 0) {
throw "Failed to configure git hooksPath"
}
Write-Host "Configured git hooks path to '$hooksPath'." -ForegroundColor Green
Write-Host "Pre-commit hook is now active for this repository." -ForegroundColor Green