Installation¶
Requirements¶
- Go 1.19+
- Internet connection
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¶
- Move
dchook.exe
to a folder likeC:\Tools\
-
Add that folder to your System PATH:
-
Start Menu → Search
Environment Variables
- Click Environment Variables
- Edit Path → Add
C:\Tools\
- Restart PowerShell or Terminal
Then run:
dchook.exe --help
✅ You’re ready to use dchook
.