Rework the update checking system

This commit is contained in:
Andrew
2013-12-04 12:34:12 -06:00
parent 6aa9bd0f77
commit bf94aaea75
11 changed files with 394 additions and 176 deletions

View File

@@ -32,8 +32,9 @@ struct MultiMCVersion
QString::number(major),
QString::number(minor));
if (build > 0) vstr += QString(".%1").arg(QString::number(build));
if (!buildType.isEmpty()) vstr += QString("-%1").arg(buildType);
if (build >= 0) vstr += "." + QString::number(build);
if (!channel.isEmpty()) vstr += "-" + channel;
if (!buildType.isEmpty()) vstr += "-" + buildType;
return vstr;
}
@@ -60,10 +61,14 @@ struct MultiMCVersion
*/
int build;
/*!
* \brief This build's channel.
*/
QString channel;
/*!
* \brief The build type.
* This indicates the type of build that this is. For example, lin64-stable.
* Usually corresponds to this build's buildbot builder name.
* This indicates the type of build that this is. For example, lin64 or custombuild.
*/
QString buildType;
};