forked from Mirrors/flatpak-builder
Add appdata to test apps
parent
73defceec6
commit
eba6a1e552
|
@ -14,6 +14,25 @@ echo "Hello world, from a sandbox"
|
||||||
EOF
|
EOF
|
||||||
chmod a+x ${DIR}/files/bin/hello.sh
|
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-finish --command=hello.sh ${DIR}
|
||||||
xdg-app build-export repo ${DIR}
|
xdg-app build-export repo ${DIR}
|
||||||
rm -rf ${DIR}
|
rm -rf ${DIR}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 7.2 KiB |
Loading…
Reference in New Issue