mirror of
https://github.com/dnote/dnote
synced 2026-03-16 07:25:49 +01:00
* Migrate uuids of books that already exist in server * Remove actions * Add dirty flag for notes and books * Drop actions table * Implement sync * Add debug * Update uuid after posting resources to the server * Fix dev script
10 lines
296 B
Bash
Executable file
10 lines
296 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" .
|
|
|
|
sudo ln -s $GOPATH/bin/cli /usr/local/bin/dnote
|