mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
safari version and gulp filtering
This commit is contained in:
parent
07846bb853
commit
2305e20ed3
11
gulpfile.js
11
gulpfile.js
@ -27,12 +27,13 @@ const filters = {
|
|||||||
'build/popup/fonts/fontawesome*.woff'
|
'build/popup/fonts/fontawesome*.woff'
|
||||||
],
|
],
|
||||||
safari: [
|
safari: [
|
||||||
'!build/Info.plist'
|
'!build/Info.plist',
|
||||||
|
'!build/downloader/**/*'
|
||||||
],
|
],
|
||||||
notSafari: [
|
webExt: [
|
||||||
'!build/manifest.json'
|
'!build/manifest.json'
|
||||||
],
|
],
|
||||||
notEdge: [
|
edge: [
|
||||||
'!build/edge/**/*'
|
'!build/edge/**/*'
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -51,7 +52,7 @@ function distFileName(browserName, ext) {
|
|||||||
|
|
||||||
function dist(browserName, manifest) {
|
function dist(browserName, manifest) {
|
||||||
return gulp.src(paths.build + '**/*')
|
return gulp.src(paths.build + '**/*')
|
||||||
.pipe(filter(['**'].concat(filters.notEdge).concat(filters.fonts).concat(filters.safari)))
|
.pipe(filter(['**'].concat(filters.edge).concat(filters.fonts).concat(filters.safari)))
|
||||||
.pipe(gulpif('popup/index.html', replace('__BROWSER__', browserName)))
|
.pipe(gulpif('popup/index.html', replace('__BROWSER__', browserName)))
|
||||||
.pipe(gulpif('manifest.json', jeditor(manifest)))
|
.pipe(gulpif('manifest.json', jeditor(manifest)))
|
||||||
.pipe(zip(distFileName(browserName, 'zip')))
|
.pipe(zip(distFileName(browserName, 'zip')))
|
||||||
@ -175,7 +176,7 @@ function safariMoveBuild(source, dest) {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
gulp.src(source)
|
gulp.src(source)
|
||||||
.on('error', reject)
|
.on('error', reject)
|
||||||
.pipe(filter(['**'].concat(filters.notEdge).concat(filters.fonts).concat(filters.notSafari)))
|
.pipe(filter(['**'].concat(filters.edge).concat(filters.fonts).concat(filters.webExt)))
|
||||||
.pipe(gulp.dest(dest))
|
.pipe(gulp.dest(dest))
|
||||||
.on('end', resolve);
|
.on('end', resolve);
|
||||||
});
|
});
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.0</string>
|
<string>1.23.0</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1</string>
|
<string>1</string>
|
||||||
<key>Chrome</key>
|
<key>Chrome</key>
|
||||||
|
Loading…
Reference in New Issue
Block a user