mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-10-25 22:10:49 +00:00
abc00b8804
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)
20 lines
612 B
PowerShell
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."
|