mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
safariCopyAssets update manifest version
This commit is contained in:
12
gulpfile.js
12
gulpfile.js
@@ -162,7 +162,7 @@ function distSafari(cb) {
|
||||
const buildPath = paths.dist + 'Safari/';
|
||||
|
||||
return del([buildPath + '**/*'])
|
||||
.then(() => copy(paths.safari + '**/*', buildPath))
|
||||
.then(() => safariCopyAssets(paths.safari + '**/*', buildPath))
|
||||
.then(() => safariCopyBuild(paths.build + '**/*', buildPath + 'safari/app'))
|
||||
.then(() => {
|
||||
return cb;
|
||||
@@ -171,6 +171,16 @@ function distSafari(cb) {
|
||||
});
|
||||
}
|
||||
|
||||
function safariCopyAssets(source, dest) {
|
||||
return new Promise((resolve, reject) => {
|
||||
gulp.src(source)
|
||||
.on('error', reject)
|
||||
.pipe(gulpif('safari/Info.plist', replace('0.0.1', manifest.version)))
|
||||
.pipe(gulp.dest(dest))
|
||||
.on('end', resolve);
|
||||
});
|
||||
}
|
||||
|
||||
function safariCopyBuild(source, dest) {
|
||||
return new Promise((resolve, reject) => {
|
||||
gulp.src(source)
|
||||
|
||||
Reference in New Issue
Block a user