Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prefix releases for cli * Allow editors to highlight markdown * Fix dev script
- Loading branch information
Sung Won Cho
committed
May 10, 2019
1 parent
1b61f26
commit e8d9200
Showing
4 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters