Skip to content

Commit

Permalink
Add experimental build from source instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyPython authored Jun 17, 2021
1 parent fbb78e3 commit 921d3ab
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,39 @@ Tree query is a tool that searches across indented lines.

It is a replacement for Roam's query system. It supports everything Roam does, except for block references.

## Installation

### Build from source
Currently the only supported method. DYI style.

On FreeBSD, GNU+Linux, and macOS, open Terminal and go:
```
curl https://dlang.org/install.sh | bash -s
```

On Windows, download and install [Git Bash](https://gitforwindows.org/):
```
mkdir %USERPROFILE%\dlang
powershell.exe -Command "wget https://dlang.org/install.sh -OutFile %USERPROFILE%\dlang\install.sh"
```

Then:

```
~/dlang/install.sh install ldc-1.23.0,dub
```

Then `cd` into the directory where you cloned this directory and type:
```
make tree-query-build
```

Install to make available eveywhere:
```
chmod 700 ~/Downloads/tree-query
sudo mv ~/Downloads/tree-query /usr/local/bin
```

## Quickstart

**Query in current directory:**
Expand Down

0 comments on commit 921d3ab

Please sign in to comment.