mirror of
https://github.com/bitwarden/desktop.git
synced 2024-10-03 04:48:07 +02:00
zip dist
This commit is contained in:
parent
8387d7d489
commit
36c7f741d7
15
gulpfile.js
15
gulpfile.js
@ -13,7 +13,8 @@
|
|||||||
webpack = require('webpack-stream'),
|
webpack = require('webpack-stream'),
|
||||||
jeditor = require("gulp-json-editor"),
|
jeditor = require("gulp-json-editor"),
|
||||||
gulpUtil = require('gulp-util'),
|
gulpUtil = require('gulp-util'),
|
||||||
child = require('child_process');
|
child = require('child_process'),
|
||||||
|
zip = require('gulp-zip');
|
||||||
|
|
||||||
var paths = {};
|
var paths = {};
|
||||||
paths.dist = './dist/';
|
paths.dist = './dist/';
|
||||||
@ -239,6 +240,7 @@ gulp.task('dist-firefox', ['dist'], function (cb) {
|
|||||||
return manifest;
|
return manifest;
|
||||||
}))
|
}))
|
||||||
.pipe(gulp.dest(paths.dist));
|
.pipe(gulp.dest(paths.dist));
|
||||||
|
return zipDist('dist-firefox');
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('dist-edge', ['dist:edge'], function (cb) {
|
gulp.task('dist-edge', ['dist:edge'], function (cb) {
|
||||||
@ -251,8 +253,19 @@ gulp.task('dist-edge', ['dist:edge'], function (cb) {
|
|||||||
return manifest;
|
return manifest;
|
||||||
}))
|
}))
|
||||||
.pipe(gulp.dest(paths.dist));
|
.pipe(gulp.dest(paths.dist));
|
||||||
|
return zipDist('dist-edge');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('dist-other', ['dist'], function (cb) {
|
||||||
|
return zipDist('dist-other');
|
||||||
|
});
|
||||||
|
|
||||||
|
function zipDist(fileName) {
|
||||||
|
return gulp.src(paths.dist + '**/*')
|
||||||
|
.pipe(zip(fileName + '.zip'))
|
||||||
|
.pipe(gulp.dest(paths.dist));
|
||||||
|
}
|
||||||
|
|
||||||
gulp.task('webfonts', function () {
|
gulp.task('webfonts', function () {
|
||||||
return gulp.src('./webfonts.list')
|
return gulp.src('./webfonts.list')
|
||||||
.pipe(googleWebFonts({}))
|
.pipe(googleWebFonts({}))
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
"papaparse": "4.3.5",
|
"papaparse": "4.3.5",
|
||||||
"web-ext": "2.0.0",
|
"web-ext": "2.0.0",
|
||||||
"child_process": "1.0.2",
|
"child_process": "1.0.2",
|
||||||
"gulp-util": "3.0.8"
|
"gulp-util": "3.0.8",
|
||||||
|
"gulp-zip": "4.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user