mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-18 01:41:27 +01:00
zip safari
This commit is contained in:
parent
775ba87a11
commit
d654253165
22
gulpfile.js
22
gulpfile.js
@ -141,13 +141,15 @@ function edgeCopyAssets(source, dest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gulp.task('dist:safari', (cb) => {
|
gulp.task('dist:safari', (cb) => {
|
||||||
const buildPath = paths.dist + 'bitwarden.safariextension/';
|
const buildPath = paths.dist + 'Safari/';
|
||||||
const safariAssetsBuildPath = buildPath + 'safari/';
|
const extBuildPath = buildPath + 'bitwarden.safariextension/';
|
||||||
|
const extAssetsBuildPath = extBuildPath + 'safari/';
|
||||||
|
|
||||||
return del([buildPath + '**/*'])
|
return del([buildPath + '**/*'])
|
||||||
.then(() => safariCopyBuild(paths.build + '**/*', buildPath))
|
.then(() => safariCopyBuild(paths.build + '**/*', extBuildPath))
|
||||||
.then(() => copy(safariAssetsBuildPath + '**/*', buildPath))
|
.then(() => copy(extAssetsBuildPath + '**/*', extBuildPath))
|
||||||
.then(() => del([safariAssetsBuildPath]))
|
.then(() => del([extAssetsBuildPath]))
|
||||||
|
.then(() => safariZip(buildPath))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return cb;
|
return cb;
|
||||||
}, () => {
|
}, () => {
|
||||||
@ -166,6 +168,16 @@ function safariCopyBuild(source, dest) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function safariZip(buildPath) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
gulp.src(buildPath + '**/*')
|
||||||
|
.on('error', reject)
|
||||||
|
.pipe(zip(distFileName('safari', 'zip')))
|
||||||
|
.pipe(gulp.dest(paths.dist))
|
||||||
|
.on('end', resolve);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
gulp.task('build', ['lint', 'webfonts']);
|
gulp.task('build', ['lint', 'webfonts']);
|
||||||
|
|
||||||
gulp.task('webfonts', () => {
|
gulp.task('webfonts', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user