Rename the active product, Go module, binaries, configuration, protocols and documentation to Piik while retaining the TV mascot and existing media/room behavior. Use one current private contract without old-name aliases. Preserve SQLite authority and copy compatible local settings once; other settings start fresh. Git-message cleanup and the infrastructure name cutover are coordinated with this phase, with original history and deployment data archived externally. Validated locally with Web and Go checks, Windows capture compilation, matched Client/Server builds, packaged Client control handshake and history-rewrite integrity checks. Skip duplicate hosted CI for this owner-authorized local release. [skip ci]
31 lines
1.0 KiB
PowerShell
31 lines
1.0 KiB
PowerShell
$ErrorActionPreference = "Stop"
|
|
|
|
$repoRoot = (git rev-parse --show-toplevel).Trim()
|
|
if ($LASTEXITCODE -ne 0) {
|
|
throw "This command must run inside the Piik Git repository."
|
|
}
|
|
Set-Location $repoRoot
|
|
|
|
foreach ($path in Get-Content -Encoding UTF8 scripts/required-project-paths.txt) {
|
|
if ([string]::IsNullOrWhiteSpace($path)) { continue }
|
|
git ls-files --error-unmatch -- $path 2>$null | Out-Null
|
|
if ($LASTEXITCODE -ne 0) {
|
|
throw "Required project artifact is not Git-tracked: $path"
|
|
}
|
|
}
|
|
|
|
git diff --check
|
|
if ($LASTEXITCODE -ne 0) { throw "Working-tree whitespace check failed." }
|
|
git diff --cached --check
|
|
if ($LASTEXITCODE -ne 0) { throw "Staged whitespace check failed." }
|
|
|
|
if ($env:PIIK_BASE_SHA -and $env:PIIK_BASE_SHA -notmatch '^0{40}$') {
|
|
git diff --check "$env:PIIK_BASE_SHA...HEAD"
|
|
if ($LASTEXITCODE -ne 0) { throw "Commit-range whitespace check failed." }
|
|
}
|
|
|
|
node scripts/check-docs.mjs
|
|
if ($LASTEXITCODE -ne 0) { throw "Documentation check failed." }
|
|
|
|
Write-Host "Repository hygiene checks passed."
|