1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(nodes): update bootstrap nodes and tools

Add a script to update bootstrap nodes from nodes.tox.chat.
Update maintainer instructions for release.
This commit is contained in:
sudden6 2020-03-23 21:25:08 +01:00
parent ef8c2b7cb3
commit da0bae5430
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
3 changed files with 41 additions and 1 deletions

View File

@ -214,6 +214,7 @@ To get translations into qTox:
- Update toxcore version number to the latest tag. Currently this needs to be
done manually by `grep`ing for the current tag.
- Update the bootstrap nodelist at `./res/nodes.json` from https://nodes.tox.chat/json.
This can be done by running [`./tools/update-nodes.sh`]
- Generate changelog with `clog`.
- In a `MAJOR`/`MINOR` release tag should include information that changelog
is located in the `CHANGELOG.md` file, e.g. `For details see CHANGELOG.md`
@ -260,6 +261,7 @@ helping for a while, ask to be added to the `qTox` organization on GitHub.
[`test-pr.sh`]: /test-pr.sh
[`./tools/deweblate-translation-file.sh`]: /tools/deweblate-translation-file.sh
[`./tools/create-tarball.sh`]: /tools/create-tarball.sh
[`./tools/update-nodes.sh`]: /tools/update-nodes.sh
[`./tools/update-versions.sh`]: /tools/update-versions.sh
[`./tools/format-code.sh`]: /tools/format-code.sh
[Flathub repository]: https://github.com/flathub/io.github.qtox.qTox

File diff suppressed because one or more lines are too long

38
tools/update-nodes.sh Executable file
View File

@ -0,0 +1,38 @@
#!/bin/bash
# Copyright © 2020 by The qTox Project Contributors
#
# This file is part of qTox, a Qt-based graphical interface for Tox.
# qTox is libre software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# qTox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with qTox. If not, see <http://www.gnu.org/licenses/>
# script to update the list of bootstrap nodes
#
# it should be run before releasing a new version
##
# requires:
# * curl
# usage:
#
# ./$script
set -eu -o pipefail
readonly SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
readonly NODES_FILE="$SCRIPT_DIR/../res/nodes.json"
readonly NODES_URL="https://nodes.tox.chat/json"
curl "$NODES_URL" --output "$NODES_FILE"