mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 05:32:40 -05:00
rbutil: Add support for installing daily builds.
Change-Id: If2bb23adcbd4a441f18846515c609118da8c5b5e
This commit is contained in:
parent
0ea8f074ed
commit
f598ef9c27
4 changed files with 16 additions and 1 deletions
|
|
@ -41,6 +41,8 @@ const static struct {
|
||||||
{ ServerInfo::CurReleaseUrl, "release/:platform:", "" },
|
{ ServerInfo::CurReleaseUrl, "release/:platform:", "" },
|
||||||
{ ServerInfo::RelCandidateVersion, "release-candidate/:platform:", "" },
|
{ ServerInfo::RelCandidateVersion, "release-candidate/:platform:", "" },
|
||||||
{ ServerInfo::RelCandidateUrl, "release-candidate/:platform:", "" },
|
{ ServerInfo::RelCandidateUrl, "release-candidate/:platform:", "" },
|
||||||
|
{ ServerInfo::DailyVersion, "daily/:platform:", "" },
|
||||||
|
{ ServerInfo::DailyUrl, "daily/:platform:", "" },
|
||||||
{ ServerInfo::CurStatus, "status/:platform:", "-1" },
|
{ ServerInfo::CurStatus, "status/:platform:", "-1" },
|
||||||
{ ServerInfo::BleedingRevision, "bleeding/rev", "" },
|
{ ServerInfo::BleedingRevision, "bleeding/rev", "" },
|
||||||
{ ServerInfo::BleedingDate, "bleeding/timestamp", "" },
|
{ ServerInfo::BleedingDate, "bleeding/timestamp", "" },
|
||||||
|
|
@ -83,10 +85,12 @@ QVariant ServerInfo::platformValue(enum ServerInfos info, QString platform)
|
||||||
switch(info) {
|
switch(info) {
|
||||||
case CurReleaseVersion:
|
case CurReleaseVersion:
|
||||||
case RelCandidateVersion:
|
case RelCandidateVersion:
|
||||||
|
case DailyVersion:
|
||||||
value = value.toStringList().at(0);
|
value = value.toStringList().at(0);
|
||||||
break;
|
break;
|
||||||
case CurReleaseUrl:
|
case CurReleaseUrl:
|
||||||
case RelCandidateUrl:
|
case RelCandidateUrl:
|
||||||
|
case DailyUrl:
|
||||||
{
|
{
|
||||||
QString version = value.toStringList().at(0);
|
QString version = value.toStringList().at(0);
|
||||||
if(value.toStringList().size() > 1)
|
if(value.toStringList().size() > 1)
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,8 @@ class ServerInfo : public QObject
|
||||||
BleedingDate,
|
BleedingDate,
|
||||||
RelCandidateVersion,
|
RelCandidateVersion,
|
||||||
RelCandidateUrl,
|
RelCandidateUrl,
|
||||||
|
DailyVersion,
|
||||||
|
DailyUrl
|
||||||
};
|
};
|
||||||
|
|
||||||
static ServerInfo* instance();
|
static ServerInfo* instance();
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,8 @@ void SelectiveInstallWidget::updateVersion(void)
|
||||||
ServerInfo::BleedingRevision).toString());
|
ServerInfo::BleedingRevision).toString());
|
||||||
m_versions.insert(SystemInfo::BuildCandidate, ServerInfo::instance()->platformValue(
|
m_versions.insert(SystemInfo::BuildCandidate, ServerInfo::instance()->platformValue(
|
||||||
ServerInfo::RelCandidateVersion).toString());
|
ServerInfo::RelCandidateVersion).toString());
|
||||||
|
m_versions.insert(SystemInfo::BuildDaily, ServerInfo::instance()->platformValue(
|
||||||
|
ServerInfo::DailyVersion).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
ui.selectedVersion->clear();
|
ui.selectedVersion->clear();
|
||||||
|
|
@ -139,6 +141,10 @@ void SelectiveInstallWidget::updateVersion(void)
|
||||||
ui.selectedVersion->addItem(tr("Release Candidate (Revison %1)").arg(
|
ui.selectedVersion->addItem(tr("Release Candidate (Revison %1)").arg(
|
||||||
m_versions[SystemInfo::BuildCandidate]), SystemInfo::BuildCandidate);
|
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
|
// select previously selected version
|
||||||
int index = ui.selectedVersion->findData(RbSettings::value(RbSettings::Build).toString());
|
int index = ui.selectedVersion->findData(RbSettings::value(RbSettings::Build).toString());
|
||||||
|
|
@ -450,6 +456,9 @@ void SelectiveInstallWidget::installRockbox(void)
|
||||||
url = ServerInfo::instance()->platformValue(
|
url = ServerInfo::instance()->platformValue(
|
||||||
ServerInfo::RelCandidateUrl, m_target).toString();
|
ServerInfo::RelCandidateUrl, m_target).toString();
|
||||||
break;
|
break;
|
||||||
|
case SystemInfo::BuildDaily:
|
||||||
|
url = ServerInfo::instance()->platformValue(
|
||||||
|
ServerInfo::DailyUrl, m_target).toString();
|
||||||
}
|
}
|
||||||
//! install build
|
//! install build
|
||||||
if(m_zipinstaller != nullptr) m_zipinstaller->deleteLater();
|
if(m_zipinstaller != nullptr) m_zipinstaller->deleteLater();
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ manual_url=https://download.rockbox.org/daily/manual/rockbox-%MODEL%%FORMAT%
|
||||||
|
|
||||||
[daily]
|
[daily]
|
||||||
build_url=https://download.rockbox.org/daily/%MODEL%/rockbox-%MODEL%.zip
|
build_url=https://download.rockbox.org/daily/%MODEL%/rockbox-%MODEL%.zip
|
||||||
voice_url=https://download.rockbox.org/daily/voices/%MODEL%-%LANGUAGE%.zip
|
voice_url=https://download.rockbox.org/daily/%MODEL%/voice-%MODEL%-%LANGUAGE%.zip
|
||||||
font_url=https://download.rockbox.org/daily/fonts/rockbox-fonts.zip
|
font_url=https://download.rockbox.org/daily/fonts/rockbox-fonts.zip
|
||||||
manual_url=https://download.rockbox.org/daily/manual/rockbox-%MODEL%%FORMAT%
|
manual_url=https://download.rockbox.org/daily/manual/rockbox-%MODEL%%FORMAT%
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue