forked from Mirrors/flatpak-builder
build-finish: Add --no-exports
parent
d99c4f6568
commit
3adb84e368
|
@ -34,9 +34,11 @@
|
||||||
#include "xdg-app-run.h"
|
#include "xdg-app-run.h"
|
||||||
|
|
||||||
static char *opt_command;
|
static char *opt_command;
|
||||||
|
static gboolean opt_no_exports;
|
||||||
|
|
||||||
static GOptionEntry options[] = {
|
static GOptionEntry options[] = {
|
||||||
{ "command", 0, 0, G_OPTION_ARG_STRING, &opt_command, "Command to set", "COMMAND" },
|
{ "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 }
|
{ 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))
|
if (!gs_file_ensure_directory (export, TRUE, cancellable, error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (opt_no_exports)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
for (i = 0; paths[i]; i++)
|
for (i = 0; paths[i]; i++)
|
||||||
{
|
{
|
||||||
g_autoptr(GFile) src = NULL;
|
g_autoptr(GFile) src = NULL;
|
||||||
|
|
|
@ -209,6 +209,14 @@
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--no-exports</option></term>
|
||||||
|
|
||||||
|
<listitem><para>
|
||||||
|
Don't look for exports in the build.
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>-v</option></term>
|
<term><option>-v</option></term>
|
||||||
<term><option>--verbose</option></term>
|
<term><option>--verbose</option></term>
|
||||||
|
|
Loading…
Reference in New Issue