diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-02-25 19:03:09 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-02-25 19:03:09 +0100 |
commit | eba6a1e552ec9eb14caf74b64a9d2d6f51873fcb (patch) | |
tree | 4c5fe846b5e045f7ccc7d38644b9d4d4cf7d9f49 /tests | |
parent | 73defceec6f8e62fffc6f312cd4e40e770265d1c (diff) | |
download | xdg-app-eba6a1e552ec9eb14caf74b64a9d2d6f51873fcb.tar.gz |
Add appdata to test apps
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/make-test-app.sh | 19 | ||||
-rw-r--r-- | tests/org.test.Hello.png | bin | 0 -> 7416 bytes |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/make-test-app.sh b/tests/make-test-app.sh index 31a9239..594902d 100755 --- a/tests/make-test-app.sh +++ b/tests/make-test-app.sh @@ -14,6 +14,25 @@ echo "Hello world, from a sandbox" EOF chmod a+x ${DIR}/files/bin/hello.sh +mkdir -p ${DIR}/files/share/app-info/xmls +mkdir -p ${DIR}/files/share/app-info/icons/xdg-app/64x64 +gzip -c > ${DIR}/files/share/app-info/xmls/org.test.Hello.xml.gz <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<components version="0.8"> + <component type="desktop"> + <id>org.test.Hello.desktop</id> + <name>Hello world test app</name> + <summary>Print a greeting</summary> + <description><p>This is a test app.</p></description> + <categories> + <category>Utility</category> + </categories> + <icon height="64" width="64" type="cached">64x64/org.gnome.gedit.png</icon> + </component> +</components> +EOF +cp org.test.Hello.png ${DIR}/files/share/app-info/icons/xdg-app/64x64/ + xdg-app build-finish --command=hello.sh ${DIR} xdg-app build-export repo ${DIR} rm -rf ${DIR} diff --git a/tests/org.test.Hello.png b/tests/org.test.Hello.png Binary files differnew file mode 100644 index 0000000..751ddbd --- /dev/null +++ b/tests/org.test.Hello.png |