35 lines
788 B
Plaintext
35 lines
788 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
SRC=$1
|
||
|
DEST=$2
|
||
|
URL=https://static.opensuse.org/appstream/tumbleweed
|
||
|
|
||
|
/usr/bin/appstream-builder \
|
||
|
--enable-hidpi \
|
||
|
--include-failed \
|
||
|
--temp-dir=/tmp/apb \
|
||
|
--cache-dir=/tmp/apb/cache \
|
||
|
--origin=appdata \
|
||
|
--api-version=0.8 \
|
||
|
--basename=appdata \
|
||
|
--packages-dir=${SRC} \
|
||
|
--output-dir=${DEST}
|
||
|
|
||
|
# Change screenshot URLs to our own infrastructure; disabled, as infra not ready
|
||
|
# appstream-util mirror-screenshots \
|
||
|
# ${DEST}/appdata.xml.gz \
|
||
|
# ${URL} \
|
||
|
# /usr/share/app-screenshots \
|
||
|
# /tmp/apb-screenshots
|
||
|
|
||
|
/usr/bin/appstream-util \
|
||
|
status-html \
|
||
|
${DEST}/appdata.xml.gz \
|
||
|
${DEST}/appdata.html
|
||
|
|
||
|
/usr/bin/appstream-util \
|
||
|
status-html \
|
||
|
${DEST}/appdata-failed.xml.gz \
|
||
|
${DEST}/appdata-failed.html
|
||
|
|