1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-27 17:18:04 +01:00

safari version and gulp filtering

This commit is contained in:
Kyle Spearrin 2018-01-15 22:13:06 -05:00
parent 07846bb853
commit 2305e20ed3
2 changed files with 7 additions and 6 deletions

View File

@ -27,12 +27,13 @@ const filters = {
'build/popup/fonts/fontawesome*.woff'
],
safari: [
'!build/Info.plist'
'!build/Info.plist',
'!build/downloader/**/*'
],
notSafari: [
webExt: [
'!build/manifest.json'
],
notEdge: [
edge: [
'!build/edge/**/*'
]
};
@ -51,7 +52,7 @@ function distFileName(browserName, ext) {
function dist(browserName, manifest) {
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('manifest.json', jeditor(manifest)))
.pipe(zip(distFileName(browserName, 'zip')))
@ -175,7 +176,7 @@ function safariMoveBuild(source, dest) {
return new Promise((resolve, reject) => {
gulp.src(source)
.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))
.on('end', resolve);
});

View File

@ -13,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.23.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>Chrome</key>