1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-10-30 23:57:43 +02:00

fix corrupted test image copying

This commit is contained in:
Patrik J. Braun
2025-10-19 09:56:12 +02:00
parent a4a7fa0283
commit 2f10970ff7

View File

@@ -163,12 +163,22 @@ gulp.task(
})()
);
gulp.task('copy-static', (): any =>
gulp.task('copy-static-images', (): any =>
gulp
.src(
[
'src/backend/model/diagnostics/image_formats/**',
'src/backend/model/diagnostics/blank.jpg',
],
{base: '.', encoding: false} // treat files as binary
)
.pipe(gulp.dest('./release'))
);
gulp.task('copy-static-text', (): any =>
gulp
.src(
[
'README.md',
// 'package-lock.json', should not add, it keeps optional packages optional even with --force-opt-packages.
'LICENSE',
@@ -178,6 +188,9 @@ gulp.task('copy-static', (): any =>
.pipe(gulp.dest('./release'))
);
gulp.task('copy-static',
gulp.series('copy-static-images', 'copy-static-text')
);
gulp.task('copy-package', (): any =>
gulp
.src(['package.json'], {base: '.'})