Upload Packages to the Deployment Server

Currently there are three possible ways to upload packages to the Deployment Server: using admin page in web interface, using command line tool on the host where the server runs, and using REST API of the server itself.

Through Server Admin Page

This was the first uploading method implemented. It uses django admin page, accessible by /admin/ URL of the Deployment Server. For Qt 5.14, the URL is http://demoappsdeploy.qt.io:8514/admin/.

To add application:

  • Navigate to the URL specified above
  • Login there as a user with administrative rights
  • Go to Apps section of the Store
  • Press Add app button.

At this point, there will be form to add an application, containing the following fields: file, vendor, category, brief description, and description.

FieldField description
FileWhere the package file for upload is specified.
VendorThe package vendor. When package signing is enabled, vendor's certificate is used to add package signature. When package signing is disabled, it is still required, but has no real effect.
CategoryCategory, in which a package will be shown on the deployment server. Currently it is possible to select only one category, even if specification allows multiple categories to be specified in a package file metadata.
DescriptionBriefDescription and Description fields are self-explanatory (and they will be returned as-is in the related API requests).
BriefDescription

After filling in the fields and pressing save button, the package will be added to the deployment server or error message will be reported.

Through API

It requires making POST request to /upload URL. Parameters are described on Qt Automotive Suite Deployment Server API Reference page.

Through Command Line Tool

If it is possible to access the command line of the Deployment Server, this is preferable way to upload packages. The tool is a store-upload-package implemented as a part of manage.py django main program. The tool can be run with the following command line:

manage.py store-upload-package --vendor <vendor> --category <category> [--description <short description>] <package>

Vendor and category are specified as their name, not an ID in django database. Description and brief description are filled with the same value by this tool.

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.