summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWill Thompson <will@willthompson.co.uk>2017-07-26 11:49:02 +0100
committerWill Thompson <will@willthompson.co.uk>2017-07-26 11:52:24 +0100
commit975ec1fecbd3ec2ae345edc09fd63ad247ddb97b (patch)
tree1f3510cafaa35fceb09ce7c2de409c73ca8b1e66 /Makefile
parent4fd7e5acd80d94692e36d0781ab1ce170deb9bcc (diff)
appdata: pass appstream-util validate-relax
As mentioned in the Makefile rule, full-on validate fails, because the screenshots are the wrong size. I don't know what the right thing to do is here: I want non-blurry screenshots on hidpi machines.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 47f3e99..b9db98e 100644
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,14 @@ org.freedesktop.Bustle.desktop: data/org.freedesktop.Bustle.desktop.in
org.freedesktop.Bustle.appdata.xml: data/org.freedesktop.Bustle.appdata.xml.in
LC_ALL=C intltool-merge -x -u po $< $@
+# https://github.com/flathub/flathub/wiki/Review-Guidelines
+validate-metadata: org.freedesktop.Bustle.desktop org.freedesktop.Bustle.appdata.xml
+ desktop-file-validate org.freedesktop.Bustle.desktop
+ appstream-util validate-relax org.freedesktop.Bustle.appdata.xml
+ # This is only a SHOULD. Screenshots currently violate it because they
+ # are hidpi.
+ appstream-util validate org.freedesktop.Bustle.appdata.xml || true
+
dist/build/bustle-pcap: $(BUSTLE_PCAP_SOURCES) $(BUSTLE_PCAP_HEADERS)
@mkdir -p dist/build
$(CC) -Idist/build/autogen $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \