3844638cc4
- openSUSE-appstream-process: compress the status html files (boo#942985). - Update to version 0.4.1: + New Features: - Add a 'compare' command to appstream-util. - Add a 'mirror-local-firmware' command to appstream-util. - Add a flag to relax the AppData Category=Settings requirement. - Add a flag to use non-optimal data sources when building metadata. - Add am 'incorporate' command to appstream-util. - Add two flags to veto-ignore to relax the requirements for metadata. + Bugfixes: - Be less strict when loading incorrect AppData files. - Do not duplicate <location> tags within a release. - Do not expect the INF ClassGuid to be the ESRT GUID. - Don't crash when parsing a <release> with no description. - Fix a potential crash spotted by clang. - Fix autogen with latest Intltool. - Ignore the prefix when loading system-wide AppStream information. - Include <pkgname> when writing the ignored metadata. - Only write the release timestamp if non-zero. - Remove the AppData veto when incorporating metadata. - Search harder when using AS_ICON_LOAD_FLAG_SEARCH_SIZE. - Sort multiple <icon> entries by name. - Update the SPDX licence list to v2.0. - When building metadata with the use-fallback flag accept OBS-URL: https://build.opensuse.org/request/show/328244 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/appstream-glib?expand=0&rev=20
40 lines
926 B
Bash
40 lines
926 B
Bash
#!/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
|
|
|
|
# compress the HTML file (boo#942985)
|
|
xz -9 ${DEST}/appdata.html
|
|
|
|
/usr/bin/appstream-util \
|
|
status-html \
|
|
${DEST}/appdata-failed.xml.gz \
|
|
${DEST}/appdata-failed.html
|
|
|
|
# compress the HTML file (boo#942985)
|
|
xz -9 ${DEST}/appdata-failed.html
|