diff --git a/MAINTAINING.md b/MAINTAINING.md index 610844f44..b6d62bf3e 100644 --- a/MAINTAINING.md +++ b/MAINTAINING.md @@ -212,6 +212,9 @@ Follow steps for adding translations from Weblate up to step 5. Next: - Create and GPG-sign tarball using [`./tools/create-tarball.sh`] script, and upload the tarball to the github release that was created by a Travis OSX release job. +- Update download links on https://tox.chat to point to the new release. +- Write a short blog post for https://github.com/qTox/blog/ and advertise the post + on Tox IRC channels, popular Tox groups, reddit, or whatever other platforms. # How to become a maintainer? diff --git a/README.md b/README.md index 7e24dec43..b05666920 100644 --- a/README.md +++ b/README.md @@ -140,15 +140,15 @@ AED3 1134 9C23 A123 E5C4 AA4B 139C A045 3DA2 D773 ``` [#qtox@freenode]: https://webchat.freenode.net/?channels=qtox -[64 bit release]: https://build.tox.chat/view/qtox/job/qTox_pkg_windows_x86-64_stable_release/lastSuccessfulBuild/artifact/setup-qtox.exe -[32 bit release]: https://build.tox.chat/view/qtox/job/qTox_pkg_windows_x86_stable_release/lastSuccessfulBuild/artifact/setup-qtox.exe +[64 bit release]: https://github.com/qTox/qTox/releases/download/v1.15.0/setup-qtox-x86_64-release.exe +[32 bit release]: https://github.com/qTox/qTox/releases/download/v1.15.0/setup-qtox-i686-release.exe [32nightly]: https://build.tox.chat/view/qtox/job/qTox-cmake-nightly_build_windows_x86_release/lastSuccessfulBuild/artifact/qTox-cmake-nightly_build_windows_x86_release.zip [64nightly]: https://build.tox.chat/view/qtox/job/qTox-cmake-nightly_build_windows_x86-64_release/lastSuccessfulBuild/artifact/qTox-cmake-nightly_build_windows_x86-64_release.zip [Arch]: /INSTALL.md#arch [Building instructions]: /INSTALL.md#os-x [Contributing]: /CONTRIBUTING.md#how-to-start-contributing [easy issues]: https://github.com/qTox/qTox/labels/E-easy -[Latest release]: https://github.com/qTox/qTox/releases/latest +[Latest release]: https://github.com/qTox/qTox/releases/download/v1.15.0/qTox.dmg [Fedora]: /INSTALL.md#fedora [Gentoo]: /INSTALL.md#gentoo [Install/Build]: /INSTALL.md diff --git a/tools/update-versions.sh b/tools/update-versions.sh index 782b72683..64c2801c6 100755 --- a/tools/update-versions.sh +++ b/tools/update-versions.sh @@ -36,6 +36,7 @@ set -eu -o pipefail readonly SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" readonly BASE_DIR="$SCRIPT_DIR/../" +readonly VERSION_PATTERN="[0-9]+\.[0-9]+\.[0-9]+" update_windows() { ( cd "$BASE_DIR/windows" @@ -47,11 +48,17 @@ update_osx() { ./update-plist-version.sh "$@" ) } +update_readme() { + cd "$BASE_DIR" + sed -ri "s|(github.com/qTox/qTox/releases/download/v)$VERSION_PATTERN|\1$@|g" README.md +} + # exit if supplied arg is not a version is_version() { - if [[ ! $@ =~ [0-9\\.]+ ]] + if [[ ! $@ =~ $VERSION_PATTERN ]] then echo "Not a version: $@" + echo "Must match: $VERSION_PATTERN" exit 1 fi } @@ -64,6 +71,7 @@ main() { then update_osx "$@" update_windows "$@" + update_readme "$@" else # TODO: actually check whether there is a GNU sed on osx echo "OSX's sed not supported. Get a proper one."