From 86f5213f3922662f9d0fc3f55a5ab08f10471cd5 Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Mon, 28 Nov 2016 15:59:59 +0200 Subject: [PATCH] Flatpak: Allow specifying the path to a destination repository This makes the Flatpak builds honor the $FLATPAK_REPO environment variable. When it is defined, it will be used as the path to an OSTree repository where the Flatpak application bundle will be committed to. This allows to place multiple builds in the same repository (along other applications, even), which can be published. For more details abuit using repositories for publishing, check: http://flatpak.org/developer.html#Distributing_Applications Note that setting $FLATPAK_REPO disables building a standalone .flatpak bundle file. --- build/gulpfile.vscode.linux.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/gulpfile.vscode.linux.js b/build/gulpfile.vscode.linux.js index 9b694d2ae53..87e2580bc37 100644 --- a/build/gulpfile.vscode.linux.js +++ b/build/gulpfile.vscode.linux.js @@ -215,8 +215,13 @@ function buildFlatpak(arch) { ]; const buildOptions = { arch: flatpakArch, - bundlePath: manifest.appId + '-' + flatpakArch + '.flatpak', }; + // If requested, use the configured path for the OSTree repository. + if (process.env.FLATPAK_REPO) { + buildOptions.repoDir = process.env.FLATPAK_REPO; + } else { + buildOptions.bundlePath = manifest.appId + '-' + flatpakArch + '.flatpak'; + } // Setup PGP signing if requested. if (process.env.GPG_KEY_ID !== undefined) { buildOptions.gpgSign = process.env.GPG_KEY_ID; -- GitLab