Skip to content

Commit 0bd5f59

Browse files
authored
Fix Windows build instrunctions
1 parent f2f75ec commit 0bd5f59

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> This README is TODO. If you'd like to use this software in a project, **don't hestiate to reach out to me.**
44
5-
Tree query is a tool that searches across indented lines.
5+
`tree-query` is a tool that lets you execute queries on ordinary directories of files like text and Markdown, inspired by Roam Research's query syntax.
66

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

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

47-
On Windows, download and install [Git Bash](https://gitforwindows.org/), then run:
47+
On Windows, download and install [Git Bash](https://gitforwindows.org/) and [7-Zip to C:\Program Files](https://www.7-zip.org/), then run:
4848
```
4949
mkdir %USERPROFILE%\dlang
50-
powershell.exe -Command "wget https://dlang.org/install.sh -OutFile %USERPROFILE%\dlang\install.sh"
50+
set PATH="%PATH%;C:\Program Files\7-Zip"
51+
set BASH="\Program Files\Git\usr\bin\bash.exe"
52+
mkdir dlang
53+
powershell.exe -Command "wget https://dlang.org/install.sh -OutFile dlang\install.sh"
5154
```
5255

5356
Then:
54-
5557
```
56-
set PATH=%PATH%;C:\Program Files\7-Zip
57-
set BASH="\Program Files\Git\usr\bin\bash.exe
58-
~/dlang/install.sh install ldc-1.23.0,dub
58+
~/dlang/install.sh install ldc-1.23.0
5959
```
6060

61-
Then `cd` into the directory where you cloned this directory and type:
61+
Then `cd` into the directory where you cloned this directory (`git clone https://github.com/CrazyPython/tree-query.git && cd tree-query`) and type:
6262
```
63-
make tree-query-build
63+
~/dlang/ldc-1.23.0/bin/ldc2 --link-defaultlib-shared=false -O2 -release tree-query.d interp.d query.d parser.d
6464
```
6565

66-
Install to make available eveywhere:
66+
(Non-Windows) Install to make available eveywhere:
6767
```
6868
chmod 700 tree-query
6969
sudo mv tree-query /usr/local/bin

0 commit comments

Comments
 (0)