Add the ability to update libraries to new versions in the headless server

It checks the libraries on the start up. It will block the app until everyting it is ready. C
This commit is contained in:
Luis Ángel San Martín
2018-04-28 10:24:10 +02:00
parent a4941553ec
commit c593e3570d
3 changed files with 58 additions and 0 deletions

View File

@ -11,6 +11,8 @@
#include "yacreader_libraries.h"
#include "yacreader_local_server.h"
#include "libraries_updater.h"
#include "console_ui_library_creator.h"
#include <iostream>
@ -136,6 +138,10 @@ int main( int argc, char ** argv )
}
QLOG_INFO() << "YACReaderLibrary starting";
//Update libraries to now versions
LibrariesUpdater updater;
updater.updateIfNeeded();
YACReaderLocalServer * localServer = new YACReaderLocalServer();
int ret = app.exec();