Skip to content

Commit

Permalink
Merge pull request #17370 from aperezdc/flatpak-niceties
Browse files Browse the repository at this point in the history
Add a few niceties for making Flatpak builds of VSCode
  • Loading branch information
Tyriar committed Dec 16, 2016
2 parents a0f4983 + 464cffc commit a652dc8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion build/gulpfile.vscode.linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,21 @@ function buildFlatpak(arch) {
];
const buildOptions = {
arch: flatpakArch,
bundlePath: manifest.appId + '-' + flatpakArch + '.flatpak',
subject: product.nameLong + ' ' + packageJson.version + '.' + linuxPackageRevision,
};
// 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;
if (process.env.GPG_HOMEDIR) {
buildOptions.gpgHomedir = process.env.GPG_HOME_DIR;
}
}
return function (cb) {
require('flatpak-bundler').bundle(manifest, buildOptions, cb);
}
Expand Down

0 comments on commit a652dc8

Please sign in to comment.