Allow building to continue despite a missing remote/LICENSE file

This commit is contained in:
Alex Dima 2021-10-21 15:28:37 +02:00
parent c3488ed740
commit 42a0825e8e
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
2 changed files with 2 additions and 2 deletions

View file

@ -263,7 +263,7 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
const productJsonStream = gulp.src(['product.json'], { base: '.' })
.pipe(json({ commit, date }));
const license = gulp.src(['remote/LICENSE'], { base: 'remote' });
const license = gulp.src(['remote/LICENSE'], { base: 'remote', allowEmpty: true });
const jsFilter = util.filter(data => !data.isDirectory() && /\.js$/.test(data.path));

View file

@ -153,7 +153,7 @@ function packageTask(sourceFolderName, destinationFolderName) {
const packageJsonStream = gulp.src(['remote/web/package.json'], { base: 'remote/web' })
.pipe(json({ name, version }));
const license = gulp.src(['remote/LICENSE'], { base: 'remote' });
const license = gulp.src(['remote/LICENSE'], { base: 'remote', allowEmpty: true });
const productionDependencies = getProductionDependencies(WEB_FOLDER);
const dependenciesSrc = _.flatten(productionDependencies.map(d => path.relative(REPO_ROOT, d.path)).map(d => [`${d}/**`, `!${d}/**/{test,tests}/**`, `!${d}/.bin/**`]));