Skip to content

Commit

Permalink
Makefile: add spk and pushspk targets for iterative Synology development
Browse files Browse the repository at this point in the history
Change-Id: I97319d14917aa2b00ff72a7b73b3db79ea8392b7
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
  • Loading branch information
bradfitz committed Dec 6, 2021
1 parent eeccbcc commit c0984f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Expand Up @@ -30,3 +30,11 @@ check: staticcheck vet depaware buildwindows build386 buildlinuxarm

staticcheck:
go run honnef.co/go/tools/cmd/staticcheck -- $$(go list ./... | grep -v tempfork)

spk:
go run github.com/tailscale/tailscale-synology@main --version=build -o tailscale.spk --source=.

pushspk: spk
echo "Pushing SPKG to root@${SYNOHOST} (env var SYNOHOST) ..."
scp tailscale.spk root@${SYNOHOST}:
ssh root@${SYNOHOST} /usr/syno/bin/synopkg install tailscale.spk

0 comments on commit c0984f8

Please sign in to comment.