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