diff --git a/Makefile b/Makefile index 31adb5a..54d53f2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ BUILDDIR=./build -GOTIFY_VERSION=v2.6.3 +GOTIFY_VERSION=v2.8.0 PLUGIN_NAME=telegram-plugin PLUGIN_ENTRY=plugin.go GO_VERSION=`cat $(BUILDDIR)/gotify-server-go-version` @@ -16,14 +16,14 @@ create-build-dir: mkdir -p ${BUILDDIR} || true update-go-mod: create-build-dir - wget -LO ${BUILDDIR}/gotify-server.mod https://raw.githubusercontent.com/gotify/server/${GOTIFY_VERSION}/go.mod + wget -LO ${BUILDDIR}/gotify-server.mod https://raw.githubusercontent.com/gotify/server/refs/tags/v${GOTIFY_VERSION}/go.mod $(GOMOD_CAP) -from ${BUILDDIR}/gotify-server.mod -to go.mod rm ${BUILDDIR}/gotify-server.mod || true go mod tidy get-gotify-server-go-version: create-build-dir rm ${BUILDDIR}/gotify-server-go-version || true - wget -LO ${BUILDDIR}/gotify-server-go-version https://raw.githubusercontent.com/gotify/server/${GOTIFY_VERSION}/GO_VERSION + wget -LO ${BUILDDIR}/gotify-server-go-version https://raw.githubusercontent.com/gotify/server/refs/tags/v${GOTIFY_VERSION}/GO_VERSION build-linux-amd64: get-gotify-server-go-version update-go-mod ${DOCKER_RUN} ${DOCKER_BUILD_IMAGE}:$(GO_VERSION)-linux-amd64 ${DOCKER_GO_BUILD} -o ${BUILDDIR}/${PLUGIN_NAME}-linux-amd64${FILE_SUFFIX}.so ${DOCKER_WORKDIR}