From 2435de1e94d837c28a73d882a395b83d504e2c5b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 22 Aug 2019 10:39:42 -0400 Subject: [PATCH] safariCopyAssets update manifest version --- gulpfile.js | 12 +++++++++++- src/safari/safari/Info.plist | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 1a188304b9..d552f558c2 100644 --- a/gulpfile.js +++ b/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) diff --git a/src/safari/safari/Info.plist b/src/safari/safari/Info.plist index bea6968478..28b7219a46 100644 --- a/src/safari/safari/Info.plist +++ b/src/safari/safari/Info.plist @@ -17,9 +17,9 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 1.41.0 + 0.0.1 CFBundleVersion - 1.41.0 + 0.0.1 LSMinimumSystemVersion $(MACOSX_DEPLOYMENT_TARGET) NSExtension