Files
BetterDesk/scripts/setup-local-gates.ps1
UNITRONIX abc00b8804 feat(guest): enforce scoped guest access lifecycle
Bind guest WebSocket sessions to a single target peer, enforce grant lifecycle and atomic usage, add the guest issuer scope, and document the password-less security boundary.\n\nRefs #440\n\nThanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-10-03 10:22:20 +02:00

20 lines
612 B
PowerShell

param()
$ErrorActionPreference = "Stop"
$repoRoot = Split-Path -Parent $PSScriptRoot
Set-Location -LiteralPath $repoRoot
Write-Output "Checking local BetterDesk gate prerequisites..."
& node scripts/local-gate.js --preflight-only
if ($LASTEXITCODE -ne 0) {
throw "Prerequisite check failed. Install the missing tools before enabling local hooks."
}
& git config --local core.hooksPath .githooks
if ($LASTEXITCODE -ne 0) {
throw "Could not configure the local Git hooks path."
}
Write-Output "Local hooks enabled at .githooks."
Write-Output "Both pre-commit and pre-push run the complete local gate."