diff --git a/build/gulpfile.vscode.linux.js b/build/gulpfile.vscode.linux.js index 9b694d2ae53e1df9d8558675fb9c3c861cc8d4c7..87e2580bc3781b5fa76ae5679df86a19cc341bdb 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;