diff options
author | Richard Hughes <richard@hughsie.com> | 2015-01-26 10:09:31 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-01-26 10:09:34 +0000 |
commit | fc4088ed8ea5c39e7403a7e7aa756f06ada900e0 (patch) | |
tree | 2a9fc74a915b178f3b7456360b9505c6f0821507 /libappstream-builder/asb-context.h | |
parent | f943c04292617cf4e8db12bf6b18f0d775cd2e48 (diff) | |
download | appstream-glib-fc4088ed8ea5c39e7403a7e7aa756f06ada900e0.tar.gz |
Make the icon tarball optional
In some cases, e.g. for ostree and xdg-app we want the icons uploaded as
indervidual files rather than as one huge tarball.
Add --icons-dir and --uncompressed-icons to appstream-builder to support this.
Diffstat (limited to 'libappstream-builder/asb-context.h')
-rw-r--r-- | libappstream-builder/asb-context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-builder/asb-context.h b/libappstream-builder/asb-context.h index 7f4adeb..b847b65 100644 --- a/libappstream-builder/asb-context.h +++ b/libappstream-builder/asb-context.h @@ -68,6 +68,7 @@ struct _AsbContextClass * @ASB_CONTEXT_FLAG_EMBEDDED_ICONS: Embed the icons in the XML * @ASB_CONTEXT_FLAG_NO_NETWORK: Do not download files * @ASB_CONTEXT_FLAG_INCLUDE_FAILED: Write the origin-ignore.xml file + * @ASB_CONTEXT_FLAG_UNCOMPRESSED_ICONS: Do not pack icons into a tarball * * The flags to use when processing the context. **/ @@ -80,6 +81,7 @@ typedef enum { ASB_CONTEXT_FLAG_EMBEDDED_ICONS = 1 << 3, /* Since: 0.3.5 */ ASB_CONTEXT_FLAG_NO_NETWORK = 1 << 4, /* Since: 0.3.5 */ ASB_CONTEXT_FLAG_INCLUDE_FAILED = 1 << 5, /* Since: 0.3.5 */ + ASB_CONTEXT_FLAG_UNCOMPRESSED_ICONS = 1 << 6, /* Since: 0.3.5 */ /*< private >*/ ASB_CONTEXT_FLAG_LAST, } AsbContextFlags; @@ -121,6 +123,8 @@ void asb_context_set_temp_dir (AsbContext *ctx, const gchar *temp_dir); void asb_context_set_output_dir (AsbContext *ctx, const gchar *output_dir); +void asb_context_set_icons_dir (AsbContext *ctx, + const gchar *icons_dir); void asb_context_set_basename (AsbContext *ctx, const gchar *basename); void asb_context_set_origin (AsbContext *ctx, |