Skip to content

Installation

Requirements


1. Clone the Repository

git clone https://github.com/TRC-Loop/dchook.git
cd dchook

2. Build the Executable

Linux / macOS

go build -o dchook

Windows

go build -ldflags="-s -w" -o dchook.exe

⚠️ -ldflags="-s -w" helps avoid false-positives from Windows Defender.


3. (Optional) Add to PATH

Linux / macOS

sudo mv dchook /usr/local/bin/

Now run:

dchook --help

Windows

  1. Move dchook.exe to a folder like C:\Tools\
  2. Add that folder to your System PATH:

  3. Start Menu → Search Environment Variables

  4. Click Environment Variables
  5. Edit Path → Add C:\Tools\
  6. Restart PowerShell or Terminal

Then run:

dchook.exe --help

✅ You’re ready to use dchook.