Do not offer devbuild as new version.

This commit is contained in:
Martin Rotter 2020-12-10 07:31:07 +01:00
parent 41e87e86b3
commit dd7eab318c
2 changed files with 8 additions and 3 deletions

View File

@ -43,10 +43,10 @@ else
export QT_PLUGIN_PATH="$QTPATH/$QTVERSION/clang_64/plugins"
export PATH="$QTBIN:$PATH"
qmake --version
fi
qmake --version
# Build application and package it.
git_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
git_revision=$(git rev-parse --short HEAD)

View File

@ -291,10 +291,15 @@ QList<UpdateInfo> SystemFactory::parseUpdatesFile(const QByteArray& updates_file
for (QJsonValueRef i : document) {
QJsonObject release = i.toObject();
if (release["tag_name"].toString() == QSL("devbuild")) {
continue;
}
UpdateInfo update;
update.m_date = QDateTime::fromString(release["published_at"].toString(), QSL("yyyy-MM-ddTHH:mm:ssZ"));
update.m_availableVersion = release["tag_name"].toString();
update.m_date = QDateTime::fromString(release["published_at"].toString(), QSL("yyyy-MM-ddTHH:mm:ssZ"));
update.m_changes = release["body"].toString();
QJsonArray assets = release["assets"].toArray();