Makefile: update make spk target to use the new go spk builder

Signed-off-by: Maisem Ali <maisem@tailscale.com>
pull/3784/head
Maisem Ali 3 years ago committed by Maisem Ali
parent 7ba874d7f1
commit 0ada42684b

1
.gitignore vendored

@ -5,6 +5,7 @@
*.dll *.dll
*.so *.so
*.dylib *.dylib
*.spk
cmd/tailscale/tailscale cmd/tailscale/tailscale
cmd/tailscaled/tailscaled cmd/tailscaled/tailscaled

@ -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

Loading…
Cancel
Save