Makefile: add spk and pushspk targets for iterative Synology development

Change-Id: I97319d14917aa2b00ff72a7b73b3db79ea8392b7
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/3521/head
Brad Fitzpatrick 3 years ago committed by Brad Fitzpatrick
parent eeccbccd08
commit c0984f88dc

@ -30,3 +30,11 @@ check: staticcheck vet depaware buildwindows build386 buildlinuxarm
staticcheck: staticcheck:
go run honnef.co/go/tools/cmd/staticcheck -- $$(go list ./... | grep -v tempfork) 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

Loading…
Cancel
Save