1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

delete from dev manifest for release

This commit is contained in:
Kyle Spearrin
2017-11-15 16:40:24 -05:00
parent 5fa5fbc496
commit ac9509b607
2 changed files with 24 additions and 20 deletions

View File

@@ -19,12 +19,6 @@ const paths = {
cssDir: './src/popup/css/' cssDir: './src/popup/css/'
}; };
const sidebarActionManifestObj = {
"default_title": "bitwarden",
"default_panel": "popup/index.html?uilocation=sidebar",
"default_icon": "images/icon19.png"
};
function dist(browserName, manifest) { function dist(browserName, manifest) {
return gulp.src(paths.dist + '**/*') return gulp.src(paths.dist + '**/*')
.pipe(gulpif(browserName !== 'edge', filter([ .pipe(gulpif(browserName !== 'edge', filter([
@@ -44,27 +38,24 @@ gulp.task('dist', ['dist:firefox', 'dist:chrome', 'dist:opera', 'dist:edge']);
gulp.task('dist:firefox', (cb) => { gulp.task('dist:firefox', (cb) => {
return dist('firefox', (manifest) => { return dist('firefox', (manifest) => {
manifest.applications = { delete manifest['-ms-preload'];
gecko: {
id: '{446900e4-71c2-419f-a6a7-df9c091e268b}',
strict_min_version: '42.0'
}
};
manifest['sidebar_action'] = sidebarActionManifestObj;
return manifest; return manifest;
}); });
}); });
gulp.task('dist:opera', (cb) => { gulp.task('dist:opera', (cb) => {
return dist('opera', (manifest) => { return dist('opera', (manifest) => {
manifest['sidebar_action'] = sidebarActionManifestObj; delete manifest['-ms-preload'];
delete manifest.applications;
return manifest; return manifest;
}); });
}); });
gulp.task('dist:chrome', (cb) => { gulp.task('dist:chrome', (cb) => {
return dist('chrome', (manifest) => { return dist('chrome', (manifest) => {
delete manifest['-ms-preload'];
delete manifest.applications;
delete manifest.sidebar_action;
return manifest; return manifest;
}); });
}); });
@@ -97,10 +88,8 @@ function copyDistEdge(source, dest) {
])) ]))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', 'edge'))) .pipe(gulpif('popup/index.html', replace('__BROWSER__', 'edge')))
.pipe(gulpif('manifest.json', jeditor((manifest) => { .pipe(gulpif('manifest.json', jeditor((manifest) => {
manifest['-ms-preload'] = { delete manifest.applications;
backgroundScript: 'edge/backgroundScriptsAPIBridge.js', delete manifest.sidebar_action;
contentScript: 'edge/contentScriptsAPIBridge.js'
};
return manifest; return manifest;
}))) })))
.pipe(gulp.dest(dest)) .pipe(gulp.dest(dest))

View File

@@ -111,5 +111,20 @@
"web_accessible_resources": [ "web_accessible_resources": [
"overlay/popup.html", "overlay/popup.html",
"notification/bar.html" "notification/bar.html"
] ],
"-ms-preload": {
"backgroundScript": "edge/backgroundScriptsAPIBridge.js",
"contentScript": "edge/contentScriptsAPIBridge.js"
},
"applications": {
"gecko": {
"id": "{446900e4-71c2-419f-a6a7-df9c091e268b}",
"strict_min_version": "42.0"
}
},
"sidebar_action": {
"default_title": "bitwarden",
"default_panel": "popup/index.html?uilocation=sidebar",
"default_icon": "images/icon19.png"
}
} }