Skip to content

Commit 921d3ab

Browse files
authored
Add experimental build from source instructions
1 parent fbb78e3 commit 921d3ab

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,39 @@ Tree query is a tool that searches across indented lines.
66

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

9+
## Installation
10+
11+
### Build from source
12+
Currently the only supported method. DYI style.
13+
14+
On FreeBSD, GNU+Linux, and macOS, open Terminal and go:
15+
```
16+
curl https://dlang.org/install.sh | bash -s
17+
```
18+
19+
On Windows, download and install [Git Bash](https://gitforwindows.org/):
20+
```
21+
mkdir %USERPROFILE%\dlang
22+
powershell.exe -Command "wget https://dlang.org/install.sh -OutFile %USERPROFILE%\dlang\install.sh"
23+
```
24+
25+
Then:
26+
27+
```
28+
~/dlang/install.sh install ldc-1.23.0,dub
29+
```
30+
31+
Then `cd` into the directory where you cloned this directory and type:
32+
```
33+
make tree-query-build
34+
```
35+
36+
Install to make available eveywhere:
37+
```
38+
chmod 700 ~/Downloads/tree-query
39+
sudo mv ~/Downloads/tree-query /usr/local/bin
40+
```
41+
942
## Quickstart
1043

1144
**Query in current directory:**

0 commit comments

Comments
 (0)