Commit a407218f authored by azubieta's avatar azubieta
Browse files

Merge branch 'development' into 'master'

Development

See merge request !2
parents 0569aa2f e174e158
Pipeline #610 passed with stage
in 2 minutes and 50 seconds
## AppImage ## AppImage
build:deb: build:neon-user-lts-deb:
image: kdeneon/plasma:user-lts image: kdeneon/plasma:user-lts
stage: build stage: build
before_script: before_script:
...@@ -9,7 +9,7 @@ build:deb: ...@@ -9,7 +9,7 @@ build:deb:
script: script:
- cmake -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` -DCMAKE_BUILD_TYPE=Release . - cmake -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` -DCMAKE_BUILD_TYPE=Release .
- make -j`nproc` - make -j`nproc`
- cpack -G DEB - cpack -G DEB -R 0.1.0-neon-user-lts
artifacts: artifacts:
paths: paths:
- plasma-appimage-integration*.deb - plasma-appimage-integration*.deb
# Debian packaging global options # Debian packaging global options
set(CPACK_DEBIAN_COMPRESSION_TYPE xz PARENT_SCOPE) set(CPACK_DEBIAN_COMPRESSION_TYPE xz PARENT_SCOPE)
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT PARENT_SCOPE)
set(CPACK_DEBIAN_PACKAGE_PROVIDES appimage-services PARENT_SCOPE) set(CPACK_DEBIAN_PACKAGE_PROVIDES appimage-services PARENT_SCOPE)
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON PARENT_SCOPE) set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON PARENT_SCOPE)
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <QJsonObject> #include <QJsonObject>
#include <QJsonDocument> #include <QJsonDocument>
#include <QDebug> #include <QDebug>
#include <KFileMetaData/Properties>
// local // local
#include "AppImageExtractor.h" #include "AppImageExtractor.h"
...@@ -42,14 +43,19 @@ void KFileMetaData::AppImageExtractor::extract(ExtractionResult* result) { ...@@ -42,14 +43,19 @@ void KFileMetaData::AppImageExtractor::extract(ExtractionResult* result) {
QJsonDocument document = QJsonDocument::fromJson(response.toLocal8Bit()); QJsonDocument document = QJsonDocument::fromJson(response.toLocal8Bit());
QJsonObject root = document.object(); QJsonObject root = document.object();
QJsonValue nameValue = root.value("name"); QString nameValue = root.value("name").toString();
result->add(Property::Title, nameValue.toVariant()); if (!nameValue.isEmpty())
result->add(Property::Title, nameValue);
QJsonValue summary = root.value("summary"); // Property::Description is not supported until KF5 5.53.0
result->add(Property::Description, summary.toString()); QString summary = root.value("summary").toString();
if (!summary.isEmpty())
result->add(Property::Description, summary);
QJsonValue license = root.value("license");
result->add(Property::License, license.toString()); QString license = root.value("license").toString();
if (!license.isEmpty())
result->add(Property::License, license);
QJsonValue links = root.value("links"); QJsonValue links = root.value("links");
QJsonObject linksOjbect = links.toObject();; QJsonObject linksOjbect = links.toObject();;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment