aboutsummaryrefslogtreecommitdiffstats
path: root/apps/com.pelagicore.downloads/stores/ServerConfig.qml
diff options
context:
space:
mode:
authorEgor Nemtsev <enemtsev@luxoft.com>2020-08-17 22:53:29 +0300
committerNikolay Zamotaev <nzamotaev@luxoft.com>2020-08-19 11:39:27 +0000
commite17a5b6f144492e3447afb4869115f0a85fa076a (patch)
tree2b2f7c62a1484011bfc285e96f60fed89982f82b /apps/com.pelagicore.downloads/stores/ServerConfig.qml
parent8f1e07d327b1be51b2b971582ef69bb2f9595a17 (diff)
[downloads] add tag with build_target to /hello, new deployment APIv5.15.0_QtAS
- for all apps on deployment server we should define whether they run on desktop or embedded system. This should be done as we have same arch on linux for desktop and embedded, e.g. NUC systems. For some apps that don't have C++ plugins both tags should be added while packaging. - added new icon and purchase API according to DS changes this should only be merged when Deployment Server is fixed for reverse tags and updated on qt.io Task-number: AUTOSUITE-1213 Task-number: AUTOSUITE-1214 Change-Id: I7d20d32c52a3575bba56c9dea84e3fc3b17463a8 Reviewed-by: Svetlana Abramenkova <sabramenkova@luxoft.com>
Diffstat (limited to 'apps/com.pelagicore.downloads/stores/ServerConfig.qml')
-rw-r--r--apps/com.pelagicore.downloads/stores/ServerConfig.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/com.pelagicore.downloads/stores/ServerConfig.qml b/apps/com.pelagicore.downloads/stores/ServerConfig.qml
index 425f5f00..9df51653 100644
--- a/apps/com.pelagicore.downloads/stores/ServerConfig.qml
+++ b/apps/com.pelagicore.downloads/stores/ServerConfig.qml
@@ -40,6 +40,7 @@ QtObject {
id: root
property string cpuArch
+ property string qtVersion
property string serverUrl: ApplicationManager.systemProperties.appStoreServerUrl
property string userName: ApplicationManager.systemProperties.userName
property string userPassword: ApplicationManager.systemProperties.userPassword
@@ -60,7 +61,14 @@ QtObject {
console.log(Logging.apps, "Neptune-UI::Application Store - Check Server");
root.tryConnectToServer();
var url = root.serverUrl + "/hello";
- var data = {"platform" : "NEPTUNE3", "version" : "2", "architecture": root.cpuArch};
+ var data = {
+ "platform" : "NEPTUNE3",
+ "version" : "2",
+ "architecture": root.cpuArch,
+ "require_tag" :
+ "build_target:" + (WindowManager.runningOnDesktop ? "desktop" : "embedded")
+ + ",qt:" + root.qtVersion
+ };
JSONBackend.setErrorFunction(0);
JSONBackend.serverCall(url, data, function(data) {
if (data !== 0) {