|
|
@ -1,4 +1,6 @@
|
|
|
|
IMAGE_REPO ?= tailscale/tailscale
|
|
|
|
IMAGE_REPO ?= tailscale/tailscale
|
|
|
|
|
|
|
|
SYNO_ARCH ?= "amd64"
|
|
|
|
|
|
|
|
SYNO_DSM ?= "7"
|
|
|
|
|
|
|
|
|
|
|
|
usage:
|
|
|
|
usage:
|
|
|
|
echo "See Makefile"
|
|
|
|
echo "See Makefile"
|
|
|
@ -32,9 +34,13 @@ 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:
|
|
|
|
spk:
|
|
|
|
go run github.com/tailscale/tailscale-synology@main --version=build -o tailscale.spk --source=.
|
|
|
|
PATH="${PWD}/tool:${PATH}" ./tool/go run github.com/tailscale/tailscale-synology@main -o tailscale.spk --source=. --goarch=${SYNO_ARCH} --dsm-version=${SYNO_DSM}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spkall:
|
|
|
|
|
|
|
|
mkdir -p spks
|
|
|
|
|
|
|
|
PATH="${PWD}/tool:${PATH}" ./tool/go run github.com/tailscale/tailscale-synology@main -o spks --source=. --goarch=all --dsm-version=all
|
|
|
|
|
|
|
|
|
|
|
|
pushspk: spk
|
|
|
|
pushspk: spk
|
|
|
|
echo "Pushing SPKG to root@${SYNOHOST} (env var SYNOHOST) ..."
|
|
|
|
echo "Pushing SPK to root@${SYNO_HOST} (env var SYNO_HOST) ..."
|
|
|
|
scp tailscale.spk root@${SYNOHOST}:
|
|
|
|
scp tailscale.spk root@${SYNO_HOST}:
|
|
|
|
ssh root@${SYNOHOST} /usr/syno/bin/synopkg install tailscale.spk
|
|
|
|
ssh root@${SYNO_HOST} /usr/syno/bin/synopkg install tailscale.spk
|
|
|
|