mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
move re-organize app path. cleanup old safari
This commit is contained in:
54
gulpfile.js
54
gulpfile.js
@@ -17,7 +17,8 @@ const paths = {
|
|||||||
coverage: './coverage/',
|
coverage: './coverage/',
|
||||||
node_modules: './node_modules/',
|
node_modules: './node_modules/',
|
||||||
popupDir: './src/popup/',
|
popupDir: './src/popup/',
|
||||||
cssDir: './src/popup/css/'
|
cssDir: './src/popup/css/',
|
||||||
|
safari: './src/safari/'
|
||||||
};
|
};
|
||||||
|
|
||||||
const filters = {
|
const filters = {
|
||||||
@@ -28,10 +29,6 @@ const filters = {
|
|||||||
'build/popup/fonts/fontawesome*.woff'
|
'build/popup/fonts/fontawesome*.woff'
|
||||||
],
|
],
|
||||||
safari: [
|
safari: [
|
||||||
'!build/safari/**/*',
|
|
||||||
'!build/downloader/**/*'
|
|
||||||
],
|
|
||||||
safariDir: [
|
|
||||||
'!build/safari/**/*'
|
'!build/safari/**/*'
|
||||||
],
|
],
|
||||||
webExt: [
|
webExt: [
|
||||||
@@ -163,14 +160,10 @@ function edgeCopyAssets(source, dest) {
|
|||||||
|
|
||||||
function distSafari(cb) {
|
function distSafari(cb) {
|
||||||
const buildPath = paths.dist + 'Safari/';
|
const buildPath = paths.dist + 'Safari/';
|
||||||
const extBuildPath = buildPath + 'bitwarden.safariextension/';
|
|
||||||
const extAssetsBuildPath = extBuildPath + 'safari/';
|
|
||||||
|
|
||||||
return del([buildPath + '**/*'])
|
return del([buildPath + '**/*'])
|
||||||
.then(() => safariCopyBuild(paths.build + '**/*', extBuildPath))
|
.then(() => copy(paths.safari + '**/*', buildPath))
|
||||||
.then(() => copy(extAssetsBuildPath + '**/*', extBuildPath))
|
.then(() => safariCopyBuild(paths.build + '**/*', buildPath + 'safari/app'))
|
||||||
.then(() => del([extAssetsBuildPath]))
|
|
||||||
.then(() => safariZip(buildPath))
|
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return cb;
|
return cb;
|
||||||
}, () => {
|
}, () => {
|
||||||
@@ -182,43 +175,7 @@ function safariCopyBuild(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.edge).concat(filters.fonts).concat(filters.webExt)))
|
.pipe(filter(['**'].concat(filters.edge).concat(filters.fonts)
|
||||||
.pipe(gulpif('popup/index.html', replace('__BROWSER__', 'browser_safari')))
|
|
||||||
.pipe(gulp.dest(dest))
|
|
||||||
.on('end', resolve);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function safariZip(buildPath) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
gulp.src(buildPath + '**/*')
|
|
||||||
.on('error', reject)
|
|
||||||
.pipe(zip(distFileName('safari', 'zip')))
|
|
||||||
.pipe(gulp.dest(paths.dist))
|
|
||||||
.on('end', resolve);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function distSafariApp(cb) {
|
|
||||||
const buildPath = paths.dist + 'Safari/';
|
|
||||||
const extBuildPath = buildPath + 'app_extension/';
|
|
||||||
const appPath = './src/safari/app/desktop/'
|
|
||||||
|
|
||||||
return del([buildPath + '**/*'])
|
|
||||||
.then(() => copy(appPath + '**/*', extBuildPath))
|
|
||||||
.then(() => safariAppCopyBuild(paths.build + '**/*', extBuildPath + 'safari/app'))
|
|
||||||
.then(() => {
|
|
||||||
return cb;
|
|
||||||
}, () => {
|
|
||||||
return cb;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function safariAppCopyBuild(source, dest) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
gulp.src(source)
|
|
||||||
.on('error', reject)
|
|
||||||
.pipe(filter(['**'].concat(filters.edge).concat(filters.fonts).concat(filters.safariDir)
|
|
||||||
.concat(filters.webExt).concat(filters.nonSafariApp)))
|
.concat(filters.webExt).concat(filters.nonSafariApp)))
|
||||||
.pipe(gulp.dest(dest))
|
.pipe(gulp.dest(dest))
|
||||||
.on('end', resolve);
|
.on('end', resolve);
|
||||||
@@ -262,7 +219,6 @@ exports['dist:chrome'] = distChrome;
|
|||||||
exports['dist:opera'] = distOpera;
|
exports['dist:opera'] = distOpera;
|
||||||
exports['dist:edge'] = distEdge;
|
exports['dist:edge'] = distEdge;
|
||||||
exports['dist:safari'] = distSafari;
|
exports['dist:safari'] = distSafari;
|
||||||
exports['dist:safariApp'] = distSafariApp;
|
|
||||||
exports.dist = gulp.parallel(distFirefox, distChrome, distOpera, distEdge, distSafari);
|
exports.dist = gulp.parallel(distFirefox, distChrome, distOpera, distEdge, distSafari);
|
||||||
exports['ci:coverage'] = ciCoverage;
|
exports['ci:coverage'] = ciCoverage;
|
||||||
exports.ci = ciCoverage;
|
exports.ci = ciCoverage;
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 749 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.9 KiB |
@@ -1,96 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>Author</key>
|
|
||||||
<string>8bit Solutions LLC</string>
|
|
||||||
<key>Builder Version</key>
|
|
||||||
<string>13604.4.7.1.3</string>
|
|
||||||
<key>CFBundleDisplayName</key>
|
|
||||||
<string>Bitwarden</string>
|
|
||||||
<key>CFBundleIdentifier</key>
|
|
||||||
<string>com.bitwarden.safari</string>
|
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
|
||||||
<string>6.0</string>
|
|
||||||
<key>CFBundleShortVersionString</key>
|
|
||||||
<string>1.41.0</string>
|
|
||||||
<key>CFBundleVersion</key>
|
|
||||||
<string>1.41.0</string>
|
|
||||||
<key>Chrome</key>
|
|
||||||
<dict>
|
|
||||||
<key>Database Quota</key>
|
|
||||||
<integer>104857600</integer>
|
|
||||||
<key>Global Page</key>
|
|
||||||
<string>background.html</string>
|
|
||||||
<key>Popovers</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>Filename</key>
|
|
||||||
<string>popup/index.html</string>
|
|
||||||
<key>Height</key>
|
|
||||||
<integer>600</integer>
|
|
||||||
<key>Identifier</key>
|
|
||||||
<string>bitwarden-popover</string>
|
|
||||||
<key>Width</key>
|
|
||||||
<integer>375</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>Toolbar Items</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>Identifier</key>
|
|
||||||
<string>bitwarden-toolbar</string>
|
|
||||||
<key>Image</key>
|
|
||||||
<string>images/icon18_safari.png</string>
|
|
||||||
<key>Include By Default</key>
|
|
||||||
<true/>
|
|
||||||
<key>Label</key>
|
|
||||||
<string>Bitwarden</string>
|
|
||||||
<key>Palette Label</key>
|
|
||||||
<string>Bitwarden</string>
|
|
||||||
<key>Popover</key>
|
|
||||||
<string>bitwarden-popover</string>
|
|
||||||
<key>Tool Tip</key>
|
|
||||||
<string>Bitwarden</string>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
</dict>
|
|
||||||
<key>Content</key>
|
|
||||||
<dict>
|
|
||||||
<key>Scripts</key>
|
|
||||||
<dict>
|
|
||||||
<key>Start</key>
|
|
||||||
<array>
|
|
||||||
<string>content/autofill.js</string>
|
|
||||||
<string>content/autofiller.js</string>
|
|
||||||
<string>content/notificationBar.js</string>
|
|
||||||
<string>content/shortcuts.js</string>
|
|
||||||
</array>
|
|
||||||
</dict>
|
|
||||||
<key>Stylesheets</key>
|
|
||||||
<array>
|
|
||||||
<string>content/autofill.css</string>
|
|
||||||
</array>
|
|
||||||
</dict>
|
|
||||||
<key>Description</key>
|
|
||||||
<string>A secure and free password manager for all of your devices.</string>
|
|
||||||
<key>DeveloperIdentifier</key>
|
|
||||||
<string>LTZ2PFU5D6</string>
|
|
||||||
<key>ExtensionInfoDictionaryVersion</key>
|
|
||||||
<string>1.0</string>
|
|
||||||
<key>Permissions</key>
|
|
||||||
<dict>
|
|
||||||
<key>Website Access</key>
|
|
||||||
<dict>
|
|
||||||
<key>Include Secure Pages</key>
|
|
||||||
<true/>
|
|
||||||
<key>Level</key>
|
|
||||||
<string>All</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<key>Update Manifest URL</key>
|
|
||||||
<string>https://bitwarden.com/misc/safari-extension.xml</string>
|
|
||||||
<key>Website</key>
|
|
||||||
<string>https://bitwarden.com</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
Reference in New Issue
Block a user