mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-28 01:09:19 +00:00
Recompute version from git version to pass the update checker with the release
This commit is contained in:
parent
8b0270dd2a
commit
689cbc7c01
3 changed files with 16 additions and 4 deletions
|
|
@ -21,7 +21,7 @@
|
|||
################################################################################
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
|
||||
project(linphoneqt VERSION 4.2.2)
|
||||
project(linphoneqt VERSION 4.2.3)
|
||||
|
||||
if(ENABLE_BUILD_VERBOSE)
|
||||
#message("CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH}")
|
||||
|
|
|
|||
|
|
@ -826,9 +826,21 @@ void App::openAppAfterInit (bool mustBeIconified) {
|
|||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
QString App::getStrippedApplicationVersion(){// x.y.z but if 'z-*' then x.y.z-1
|
||||
QString currentVersion = applicationVersion();
|
||||
QStringList versions = currentVersion.split('.');
|
||||
if(versions.size() >=3){
|
||||
currentVersion = versions[0]+"."+versions[1]+".";
|
||||
QStringList patchVersions = versions[2].split('-');
|
||||
if( patchVersions.size() > 1)
|
||||
currentVersion += QString::number(patchVersions[0].toInt()-1);
|
||||
else
|
||||
currentVersion += patchVersions[0];
|
||||
}
|
||||
return currentVersion;
|
||||
}
|
||||
void App::checkForUpdate () {
|
||||
CoreManager::getInstance()->getCore()->checkForUpdate(
|
||||
Utils::appStringToCoreString(applicationVersion())
|
||||
Utils::appStringToCoreString(getStrippedApplicationVersion())
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ private:
|
|||
emit opened(mIsOpened);
|
||||
}
|
||||
}
|
||||
|
||||
static QString getStrippedApplicationVersion();// x.y.z but if 'z-*' then x.y.z-1
|
||||
static void checkForUpdate ();
|
||||
|
||||
static QString getQtVersion () {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue