Skip to content

Commit

Permalink
Update instructions for building with the Go toolchain
Browse files Browse the repository at this point in the history
Now I have removed replace directives, termshark can be built with one
go install invocation.
  • Loading branch information
gcla committed Jun 4, 2022
1 parent 1e2e0e2 commit 13c7515
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

### Changed

- Now you can build and install termshark with one command: `go install github.com/gcla/termshark/v2/cmd/termshark`
- Fixed a bug that caused mouse-clicks within the hex view to not function correctly if the viewport was not
at the top of the data to be displayed.
- When focus is in the packet hex view, the mouse wheel will no longer move the cursor - instead it will move
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,18 @@ Termshark is pre-packaged for the following platforms: [Arch Linux](docs/Package

## Building

Termshark uses Go modules; compile with Go 1.13 or higher. Set `GO111MODULE=on` then run:
Termshark uses Go modules. Set `GO111MODULE=on` then run:

```bash
git clone https://github.com/gcla/termshark
cd termshark
go install ./...
go install github.com/gcla/termshark/v2/cmd/termshark
```

For versions of Go between 1.14 and 1.17, use

```bash
go get github.com/gcla/termshark/v2/cmd/termshark
```

Then add ```~/go/bin/``` to your ```PATH```.

For all packet analysis, termshark depends on tshark from the Wireshark project. Make sure ```tshark``` is in your ```PATH```.
Expand Down

0 comments on commit 13c7515

Please sign in to comment.