From 0b539ced92a7fc1318dd7702de33a7d692c12fcc Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Fri, 14 Aug 2020 19:30:40 +0300 Subject: [PATCH] * : different version url for edge builds Closes: #2023 --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ee336074..7e01c9ad 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,12 @@ endif endif endif +# Version history URL (see +VERSION_HISTORY_URL="https://github.com/AdguardTeam/AdGuardHome/releases" +ifeq ($(CHANNEL),edge) + VERSION_HISTORY_URL="https://github.com/AdguardTeam/AdGuardHome/commits/master" +endif + # goreleaser command depends on the $CHANNEL GORELEASER_COMMAND=goreleaser release --rm-dist --skip-publish --snapshot ifneq ($(CHANNEL),edge) @@ -221,7 +227,7 @@ define write_version_file echo "{" >> $(DIST_DIR)/version.json echo " \"version\": \"$(version)\"," >> $(DIST_DIR)/version.json echo " \"announcement\": \"AdGuard Home $(version) is now available!\"," >> $(DIST_DIR)/version.json - echo " \"announcement_url\": \"https://github.com/AdguardTeam/AdGuardHome/releases\"," >> $(DIST_DIR)/version.json + echo " \"announcement_url\": \"$(VERSION_HISTORY_URL)\"," >> $(DIST_DIR)/version.json echo " \"selfupdate_min_version\": \"0.0\"," >> $(DIST_DIR)/version.json # Windows builds