safariCopyAssets update manifest version
This commit is contained in:
parent
4be51b6bc8
commit
2435de1e94
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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue