summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-22 16:39:56 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-22 18:30:01 +0100
commitf598ef9c27fa51b2d3b809f2937104b8bca271b2 (patch)
treed893a95439edaeb7fd9178ea87de3614f896c052 /rbutil/rbutilqt/gui/selectiveinstallwidget.cpp
parent0ea8f074ed5bc615f5a7cc495582f525210b87d5 (diff)
downloadrockbox-f598ef9c27.tar.gz
rockbox-f598ef9c27.tar.bz2
rockbox-f598ef9c27.zip
rbutil: Add support for installing daily builds.
Change-Id: If2bb23adcbd4a441f18846515c609118da8c5b5e
Diffstat (limited to 'rbutil/rbutilqt/gui/selectiveinstallwidget.cpp')
-rw-r--r--rbutil/rbutilqt/gui/selectiveinstallwidget.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp b/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp
index f64cfecd7c..cc5abb40ad 100644
--- a/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp
+++ b/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp
@@ -124,6 +124,8 @@ void SelectiveInstallWidget::updateVersion(void)
ServerInfo::BleedingRevision).toString());
m_versions.insert(SystemInfo::BuildCandidate, ServerInfo::instance()->platformValue(
ServerInfo::RelCandidateVersion).toString());
+ m_versions.insert(SystemInfo::BuildDaily, ServerInfo::instance()->platformValue(
+ ServerInfo::DailyVersion).toString());
}
ui.selectedVersion->clear();
@@ -139,6 +141,10 @@ void SelectiveInstallWidget::updateVersion(void)
ui.selectedVersion->addItem(tr("Release Candidate (Revison %1)").arg(
m_versions[SystemInfo::BuildCandidate]), SystemInfo::BuildCandidate);
}
+ if(!m_versions[SystemInfo::BuildDaily].isEmpty()) {
+ ui.selectedVersion->addItem(tr("Daily Build (%1)").arg(
+ m_versions[SystemInfo::BuildDaily]), SystemInfo::BuildDaily);
+ }
// select previously selected version
int index = ui.selectedVersion->findData(RbSettings::value(RbSettings::Build).toString());
@@ -450,6 +456,9 @@ void SelectiveInstallWidget::installRockbox(void)
url = ServerInfo::instance()->platformValue(
ServerInfo::RelCandidateUrl, m_target).toString();
break;
+ case SystemInfo::BuildDaily:
+ url = ServerInfo::instance()->platformValue(
+ ServerInfo::DailyUrl, m_target).toString();
}
//! install build
if(m_zipinstaller != nullptr) m_zipinstaller->deleteLater();