Files
triangles_v5/scripts
Sami Ahmed f58d0a5a15 scripts: add pre-commit hook that auto-validates .onion addresses
The hook scans every staged file for:
  1. Filename matches: triangles.conf, *.onion
  2. Content matches: lines starting with 'addnode=' followed by a
     base32-encoded .onion address

If any address fails v3 onion checksum validation, the commit is blocked
with a clear diagnostic showing the bad address, the reason, and (when
possible) a suggestion of the correct address.

Run with --ci mode on the validator so it exits 1 on any failure.

Install:
  cp scripts/pre-commit .git/hooks/pre-commit
  chmod +x .git/hooks/pre-commit

Bypass (NEVER do this for normal commits):
  git commit --no-verify

Tested:
  ✓ Clean config: commit allowed, validator says PASSED
  ✓ Corrupted config (btb6 vs gtb6): commit blocked with full
    diagnostic + 'did you mean: gtb6?' suggestion
2026-06-21 16:41:14 -07:00
..
2026-04-29 16:48:16 -07:00

Version Bump Script

Updates the version number across all files in the repo from a single command.

Usage

Set a specific version:

bash scripts/bump-version.sh 5.7.0

Or edit src/clientversion.h first, then sync everything else:

bash scripts/bump-version.sh

What it updates

  • src/clientversion.h (source of truth)
  • src/version.h
  • triangles-qt.pro
  • Dockerfile
  • All packaging manifests (Docker, Snap, Scoop, WinGet, RPM, Flatpak, Debian, AppImage)

What still needs manual review after running

  • packaging/appstream/...metainfo.xml — add a new <release> entry
  • README.md — update header version if desired
  • Any documentation with download URLs