Improve highlight (#174)

* Prefix releases for cli

* Allow editors to highlight markdown

* Fix dev script
This commit is contained in:
Sung Won Cho 2019-05-10 15:46:24 +10:00 committed by GitHub
commit e8d920030d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 14 deletions

View file

@ -1,10 +1,11 @@
#!/bin/bash
set -eux
# dev.sh builds a new binary and replaces the old one in the PATH with it
sudo rm "$(which dnote)" $GOPATH/bin/cli
sudo rm -rf "$(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" .
go install -ldflags "-X main.apiEndpoint=http://127.0.0.1:5000" --tags "linux fts5" "$GOPATH/src/github.com/dnote/dnote/cli/."
sudo ln -s $GOPATH/bin/cli /usr/local/bin/dnote
sudo ln -s "$GOPATH/bin/cli" /usr/local/bin/dnote