mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore(release): Update README download links and MAINTAINING.md
This commit is contained in:
parent
7293151469
commit
d7b6af9a5b
|
@ -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
|
- 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
|
upload the tarball to the github release that was created by a Travis OSX
|
||||||
release job.
|
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?
|
# How to become a maintainer?
|
||||||
|
|
|
@ -140,15 +140,15 @@ AED3 1134 9C23 A123 E5C4 AA4B 139C A045 3DA2 D773
|
||||||
```
|
```
|
||||||
|
|
||||||
[#qtox@freenode]: https://webchat.freenode.net/?channels=qtox
|
[#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
|
[64 bit release]: https://github.com/qTox/qTox/releases/download/v1.15.0/setup-qtox-x86_64-release.exe
|
||||||
[32 bit release]: https://build.tox.chat/view/qtox/job/qTox_pkg_windows_x86_stable_release/lastSuccessfulBuild/artifact/setup-qtox.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
|
[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
|
[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
|
[Arch]: /INSTALL.md#arch
|
||||||
[Building instructions]: /INSTALL.md#os-x
|
[Building instructions]: /INSTALL.md#os-x
|
||||||
[Contributing]: /CONTRIBUTING.md#how-to-start-contributing
|
[Contributing]: /CONTRIBUTING.md#how-to-start-contributing
|
||||||
[easy issues]: https://github.com/qTox/qTox/labels/E-easy
|
[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
|
[Fedora]: /INSTALL.md#fedora
|
||||||
[Gentoo]: /INSTALL.md#gentoo
|
[Gentoo]: /INSTALL.md#gentoo
|
||||||
[Install/Build]: /INSTALL.md
|
[Install/Build]: /INSTALL.md
|
||||||
|
|
|
@ -36,6 +36,7 @@ set -eu -o pipefail
|
||||||
|
|
||||||
readonly SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
readonly SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
readonly BASE_DIR="$SCRIPT_DIR/../"
|
readonly BASE_DIR="$SCRIPT_DIR/../"
|
||||||
|
readonly VERSION_PATTERN="[0-9]+\.[0-9]+\.[0-9]+"
|
||||||
|
|
||||||
update_windows() {
|
update_windows() {
|
||||||
( cd "$BASE_DIR/windows"
|
( cd "$BASE_DIR/windows"
|
||||||
|
@ -47,11 +48,17 @@ update_osx() {
|
||||||
./update-plist-version.sh "$@" )
|
./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
|
# exit if supplied arg is not a version
|
||||||
is_version() {
|
is_version() {
|
||||||
if [[ ! $@ =~ [0-9\\.]+ ]]
|
if [[ ! $@ =~ $VERSION_PATTERN ]]
|
||||||
then
|
then
|
||||||
echo "Not a version: $@"
|
echo "Not a version: $@"
|
||||||
|
echo "Must match: $VERSION_PATTERN"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -64,6 +71,7 @@ main() {
|
||||||
then
|
then
|
||||||
update_osx "$@"
|
update_osx "$@"
|
||||||
update_windows "$@"
|
update_windows "$@"
|
||||||
|
update_readme "$@"
|
||||||
else
|
else
|
||||||
# TODO: actually check whether there is a GNU sed on osx
|
# TODO: actually check whether there is a GNU sed on osx
|
||||||
echo "OSX's sed not supported. Get a proper one."
|
echo "OSX's sed not supported. Get a proper one."
|
||||||
|
|
Loading…
Reference in New Issue
Block a user