1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-24 00:54:30 +01:00

safariCopyAssets update manifest version

This commit is contained in:
Kyle Spearrin 2019-08-22 10:39:42 -04:00
parent 4be51b6bc8
commit 2435de1e94
2 changed files with 13 additions and 3 deletions

View File

@ -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)

View File

@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.41.0</string>
<string>0.0.1</string>
<key>CFBundleVersion</key>
<string>1.41.0</string>
<string>0.0.1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSExtension</key>