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/';
|
const buildPath = paths.dist + 'Safari/';
|
||||||
|
|
||||||
return del([buildPath + '**/*'])
|
return del([buildPath + '**/*'])
|
||||||
.then(() => copy(paths.safari + '**/*', buildPath))
|
.then(() => safariCopyAssets(paths.safari + '**/*', buildPath))
|
||||||
.then(() => safariCopyBuild(paths.build + '**/*', buildPath + 'safari/app'))
|
.then(() => safariCopyBuild(paths.build + '**/*', buildPath + 'safari/app'))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return cb;
|
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) {
|
function safariCopyBuild(source, dest) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
gulp.src(source)
|
gulp.src(source)
|
||||||
|
|||||||
@@ -17,9 +17,9 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>XPC!</string>
|
<string>XPC!</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.41.0</string>
|
<string>0.0.1</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.41.0</string>
|
<string>0.0.1</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
|
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
|
||||||
<key>NSExtension</key>
|
<key>NSExtension</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user