curtain/Scripts/build.sh
acamarata 709669e0cb Curtain v1.0.0 — privacy curtain for macOS Screen Sharing
Menu-bar agent that, on a Screen Sharing connection, covers the host
displays and blocks physical keyboard/mouse from the apps while remote
input passes through, then locks the Mac on idle or disconnect.

- netstat-based session detection (debounced)
- CGEventTap input filter (block physical sourceStateID==1, pass remote)
- .none/.readOnly cover windows with on-curtain password box
- SACLockScreenImmediate lock + IOKit display-sleep assertion
- root helper (NOPASSWD) to disconnect the Screen Sharing session
- install/uninstall scripts, app bundle, login agent, CI
2026-06-01 14:10:50 -04:00

7 lines
266 B
Bash
Executable file

#!/bin/bash
# Quick dev build + run (foreground, for testing). Use Scripts/install.sh for real install.
set -euo pipefail
cd "$(dirname "$0")/.."
swift build -c release
echo "Built: .build/release/Curtain"
echo "Run with: .build/release/Curtain (Ctrl-C to stop)"