diff --git a/app/xdg-app-builtins-build-finish.c b/app/xdg-app-builtins-build-finish.c
index a60e2b086..bd47e663e 100644
--- a/app/xdg-app-builtins-build-finish.c
+++ b/app/xdg-app-builtins-build-finish.c
@@ -34,9 +34,11 @@
#include "xdg-app-run.h"
static char *opt_command;
+static gboolean opt_no_exports;
static GOptionEntry options[] = {
{ "command", 0, 0, G_OPTION_ARG_STRING, &opt_command, "Command to set", "COMMAND" },
+ { "no-exports", 0, 0, G_OPTION_ARG_NONE, &opt_no_exports, "Don't process exports" },
{ NULL }
};
@@ -180,6 +182,9 @@ collect_exports (GFile *base, const char *app_id, GCancellable *cancellable, GEr
if (!gs_file_ensure_directory (export, TRUE, cancellable, error))
return FALSE;
+ if (opt_no_exports)
+ return TRUE;
+
for (i = 0; paths[i]; i++)
{
g_autoptr(GFile) src = NULL;
diff --git a/doc/xdg-app-build-finish.xml b/doc/xdg-app-build-finish.xml
index 294e735da..c1db6d72f 100644
--- a/doc/xdg-app-build-finish.xml
+++ b/doc/xdg-app-build-finish.xml
@@ -209,6 +209,14 @@
+
+
+
+
+ Don't look for exports in the build.
+
+
+