build: Export FLATPAK_ID and FLATPAK_ARCH

These are useful to have when building things.

Closes: #1052
Approved by: alexlarsson
This commit is contained in:
Alexander Larsson
2017-09-29 10:15:15 +02:00
committed by Atomic Bot
parent bc2d72adeb
commit bbdf2d11c8

View File

@@ -350,6 +350,8 @@ flatpak_builtin_build (int argc, char **argv, GCancellable *cancellable, GError
add_args (argv_array,
"--setenv", "FLATPAK_DEST", dest,
"--setenv", "FLATPAK_ID", id,
"--setenv", "FLATPAK_ARCH", runtime_ref_parts[2],
NULL);
app_context = flatpak_app_compute_permissions (metakey,