mirror of
https://github.com/opentx/opentx.git
synced 2025-07-21 15:25:17 +03:00
The ':' separator is not a so good idea in Windows installer (ADS)
This commit is contained in:
parent
8f96f50a84
commit
4ea9e5c11f
3 changed files with 9 additions and 14 deletions
|
@ -1,17 +1,12 @@
|
||||||
PROJECT( companion )
|
PROJECT( companion )
|
||||||
|
|
||||||
SET( C9X_VERSION_MAJOR "2" )
|
SET(C9X_VERSION_MAJOR "2")
|
||||||
SET( C9X_VERSION_MINOR "1" )
|
SET(C9X_VERSION_MINOR "1")
|
||||||
SET( C9X_VERSION_REVISION "1" )
|
SET(C9X_VERSION_REVISION "1")
|
||||||
if(DEFINED C9X_VERSION_SUFFIX)
|
SET(C9X_VERSION_SUFFIX $ENV{OPENTX_VERSION_SUFFIX})
|
||||||
set(ENV{OPENTX_VERSION_SUFFIX} ${C9X_VERSION_SUFFIX})
|
|
||||||
else()
|
|
||||||
set(C9X_VERSION_SUFFIX $ENV{OPENTX_VERSION_SUFFIX})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
message(STATUS ${C9X_VERSION_SUFFIX} $ENV{OPENTX_VERSION_SUFFIX})
|
SET(C9X_VERSION ${C9X_VERSION_MAJOR}.${C9X_VERSION_MINOR}.${C9X_VERSION_REVISION}${C9X_VERSION_SUFFIX})
|
||||||
|
MESSAGE(STATUS OpenTX Companion ${C9X_VERSION})
|
||||||
SET( C9X_VERSION ${C9X_VERSION_MAJOR}.${C9X_VERSION_MINOR}.${C9X_VERSION_REVISION}${C9X_VERSION_SUFFIX} )
|
|
||||||
|
|
||||||
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )
|
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ add_custom_target(about_lbm_taranis
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(commondeps
|
add_custom_target(commondeps
|
||||||
OPENTX_VERSION_SUFFIX=${C9X_VERSION_SUFFIX} && make stamp_header tra
|
make stamp_header tra
|
||||||
WORKING_DIRECTORY ${RADIO_SRC_DIRECTORY}
|
WORKING_DIRECTORY ${RADIO_SRC_DIRECTORY}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1020,7 +1020,7 @@ QPixmap makePixMap( QImage image, QString firmwareType )
|
||||||
int version2index(const QString & version)
|
int version2index(const QString & version)
|
||||||
{
|
{
|
||||||
int result = 999;
|
int result = 999;
|
||||||
QStringList parts = version.split(":n");
|
QStringList parts = version.split("N");
|
||||||
if (parts.size() > 1)
|
if (parts.size() > 1)
|
||||||
result = parts[1].toInt(); // nightly build
|
result = parts[1].toInt(); // nightly build
|
||||||
parts = parts[0].split('.');
|
parts = parts[0].split('.');
|
||||||
|
@ -1044,7 +1044,7 @@ QString index2version(int index)
|
||||||
int major = index / 100;
|
int major = index / 100;
|
||||||
QString result = QString("%1.%2.%3").arg(major).arg(minor).arg(revision);
|
QString result = QString("%1.%2.%3").arg(major).arg(minor).arg(revision);
|
||||||
if (nightly > 0 && nightly < 999) {
|
if (nightly > 0 && nightly < 999) {
|
||||||
result += QString(":n%1").arg(nightly);
|
result += QString("N%1").arg(nightly);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue