Pull request: all: imp ann url

Updates #4209.

Squashed commit of the following:

commit 0c31a59c5bf6bcc27a4779adf226d9a1ac9eece1
Merge: 803f32db 8455940b
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Tue Feb 1 19:33:55 2022 +0300

    Merge branch 'master' into 4209-ann-url

commit 803f32dbc7276077a4374ed0f5e0a1fa36f91c9b
Author: Ildar Kamalov <ik@adguard.com>
Date:   Tue Feb 1 14:46:47 2022 +0300

    client: add manual update link to update topline

commit ca375b52fa53503a3987b9723eb9a1d74878e890
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Mon Jan 31 20:49:42 2022 +0300

    all: imp ann url
This commit is contained in:
Ainar Garipov
2022-02-01 19:42:07 +03:00
parent 8455940b59
commit 76fa60498e
3 changed files with 32 additions and 14 deletions

View File

@@ -379,17 +379,21 @@ readonly version_download_url version_json
# Point users to the master branch if the channel is edge.
if [ "$channel" = 'edge' ]
then
version_history_url='https://github.com/AdguardTeam/AdGuardHome/commits/master'
# TODO(a.garipov): Put a link to the platforms page here. Something like:
#
# announcement_url='https://github.com/AdguardTeam/AdGuardHome/wiki/Platforms'
#
announcement_url='https://github.com/AdguardTeam/AdGuardHome/commits/master'
else
version_history_url='https://github.com/AdguardTeam/AdGuardHome/releases'
announcement_url="https://github.com/AdguardTeam/AdGuardHome/releases/tag/${version}"
fi
readonly version_history_url
readonly announcement_url
rm -f "$version_json"
echo "{
\"version\": \"${version}\",
\"announcement\": \"AdGuard Home ${version} is now available!\",
\"announcement_url\": \"${version_history_url}\",
\"announcement_url\": \"${announcement_url}\",
\"selfupdate_min_version\": \"0.0\",
" >> "$version_json"