-
Notifications
You must be signed in to change notification settings - Fork 35
/
ghostery-tab-firefox.js
47 lines (44 loc) · 1.36 KB
/
ghostery-tab-firefox.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*!
* Copyright (c) 2014-present Cliqz GmbH. All rights reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
const configBase = require('./ghostery-tab-base');
const publish = require('./common/publish');
const id = '{0ea88bc4-03bd-4baa-8153-acc861589c1c}';
const CUSTOM_MANIFEST_ENTRY = `
,"applications": {
"gecko": {
"id": "${id}",
"strict_min_version": "57"
}
}
`;
module.exports = Object.assign({}, configBase, {
CUSTOM_MANIFEST_ENTRY,
CUSTOM_MANIFEST_PAGE_ACTION_POPUP: '',
QUICK_SEARCH_TOGGLE: 'Ctrl+Shift+Space',
publish: `web-ext sign -a . -s build/ --api-key=$UPLOAD_API_KEY --api-secret=$UPLOAD_API_SECRET --timeout=360000 && ${publish.toEdgeForGhostery('ghostery_start_tab_nightly', 'ghostery-tab-firefox', 'xpi')}`,
settings: Object.assign({}, configBase.settings, {
id,
channel: 'GT02',
SHOW_ONBOARDING_OVERLAY: true,
telemetry: {
demographics: {
...configBase.settings.telemetry.demographics,
platform: 'firefox',
},
},
}),
modules: configBase.modules.concat([
'onboarding-overlay',
]),
bundles: configBase.bundles.concat([
'onboarding-overlay/app.bundle.js',
]),
buildTargets: {
firefox: 57,
},
});