Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
azubieta
plasma-appimage-integration
Commits
a407218f
Commit
a407218f
authored
Jul 17, 2019
by
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a407218f
## AppImage
build:deb:
build:
neon-user-lts-
deb:
image
:
kdeneon/plasma:user-lts
stage
:
build
before_script
:
...
...
@@ -9,7 +9,7 @@ build:deb:
script
:
-
cmake -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` -DCMAKE_BUILD_TYPE=Release .
-
make -j`nproc`
-
cpack -G DEB
-
cpack -G DEB
-R 0.1.0-neon-user-lts
artifacts
:
paths
:
-
plasma-appimage-integration*.deb
dist/deb/CMakeLists.txt
View file @
a407218f
# Debian packaging global options
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_SHLIBDEPS ON PARENT_SCOPE
)
...
...
src/metadata-extractor/AppImageExtractor.cpp
View file @
a407218f
...
...
@@ -4,6 +4,7 @@
#include
<QJsonObject>
#include
<QJsonDocument>
#include
<QDebug>
#include
<KFileMetaData/Properties>
// local
#include
"AppImageExtractor.h"
...
...
@@ -42,14 +43,19 @@ void KFileMetaData::AppImageExtractor::extract(ExtractionResult* result) {
QJsonDocument
document
=
QJsonDocument
::
fromJson
(
response
.
toLocal8Bit
());
QJsonObject
root
=
document
.
object
();
QJsonValue
nameValue
=
root
.
value
(
"name"
);
result
->
add
(
Property
::
Title
,
nameValue
.
toVariant
());
QString
nameValue
=
root
.
value
(
"name"
).
toString
();
if
(
!
nameValue
.
isEmpty
())
result
->
add
(
Property
::
Title
,
nameValue
);
QJsonValue
summary
=
root
.
value
(
"summary"
);
result
->
add
(
Property
::
Description
,
summary
.
toString
());
// Property::Description is not supported until KF5 5.53.0
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"
);
QJsonObject
linksOjbect
=
links
.
toObject
();;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment