fix: updater permission denied on .github — add to protected dirs

The auto-updater tried to extract .github/ from the release zip,
causing Permission denied errors. Added .github and .claude to the
protected directories list so they are skipped during extraction.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Former-commit-id: 8916fa08e005820ddbfc3b195c387dbf6187587e
This commit is contained in:
anoracleofra-code
2026-03-14 14:23:03 -06:00
parent 8ff4516a7a
commit 3cdd2c851e
+1 -1
View File
@@ -25,7 +25,7 @@ GITHUB_RELEASES_URL = "https://api.github.com/repos/BigBodyCobain/Shadowbroker/r
# ---------------------------------------------------------------------------
# Protected patterns — files/dirs that must NEVER be overwritten during update
# ---------------------------------------------------------------------------
_PROTECTED_DIRS = {"venv", "node_modules", ".next", "__pycache__", ".git"}
_PROTECTED_DIRS = {"venv", "node_modules", ".next", "__pycache__", ".git", ".github", ".claude"}
_PROTECTED_EXTENSIONS = {".db", ".sqlite"}
_PROTECTED_NAMES = {
".env",