dnote/scripts/dev.sh
Sung Won Cho 14b0cf623f
Find command (#149)
* Implement basic full text search

* Avoid lag in log while making network calls

* Allow to restrict search by book name
2019-01-01 14:59:57 +11:00

10 lines
301 B
Bash
Executable file

#!/bin/bash
# dev.sh builds a new binary and replaces the old one in the PATH with it
sudo rm "$(which dnote)" $GOPATH/bin/cli
# change tags to darwin if on macos
go install -ldflags "-X main.apiEndpoint=http://127.0.0.1:5000" --tags "linux fts5" .
sudo ln -s $GOPATH/bin/cli /usr/local/bin/dnote