forked from Mirrors/flatpak-builder
build-finish: Add --no-exports
parent
d99c4f6568
commit
3adb84e368
|
@ -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;
|
||||
|
|
|
@ -209,6 +209,14 @@
|
|||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--no-exports</option></term>
|
||||
|
||||
<listitem><para>
|
||||
Don't look for exports in the build.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-v</option></term>
|
||||
<term><option>--verbose</option></term>
|
||||
|
|
Loading…
Reference in New Issue