-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmanifest.json.erb
83 lines (83 loc) · 1.93 KB
/
manifest.json.erb
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<%# -*- Mode: javascript; indent-tab-mode: nil; js-indent-level: 2 -*- -%>
<%
version = ENV['VERSION'] or die("tabhunter/manifest.json.erb: VERSION not set")
target = ENV['TARGET'] or die("build.sh.erb: TARGET not set") %>{
"author": "Eric Promislow",
<% if target == 'firefox' %>
"browser_action": {
<% else %>
"action": {
<% end %>
<% if target == 'firefox' %>
"browser_style": true,
<% end %>
"default_icon": {
"16": "icons/martini-16x16.png",
"24": "icons/martini-24x24.png",
"32": "icons/martini-32x32.png"
},
"default_title": "Tabhunter",
"default_popup": "popup/tabhunter.html"
},
"commands": {
"_execute_browser_action": {
"suggested_key": {
"mac": "MacCtrl+Shift+T",
"windows": "Ctrl+Shift+S",
"linux": "Ctrl+5"
}
}
},
"default_locale": "en",
"description": "Wade through all your tabs fast",
<% if target == 'firefox' %>
"developer": {
"name": "Eric Promislow",
"url": "https://github.com/ericpromislow/tabhunter"
},
<% end %>
"homepage_url": "https://github.com/ericpromislow/tabhunter",
"icons": {
"48": "icons/th-48x48.png",
"96": "icons/th-96x96.png",
"128": "icons/th-128x128.png"
},
<% if target == 'firefox' %>
"manifest_version": 2,
<% else %>
"manifest_version": 3,
<% end %>
"name": "Tabhunter",
"options_ui": {
<% if target == 'firefox' %>
"browser_style": true,
<% end %>
"page": "popup/prefs.html"
},
"permissions": [
"activeTab",
"clipboardWrite",
"storage",
<% if target == 'firefox' %>
"bookmarks",
"<all_urls>",
<% else %>
"scripting",
<% end %>
"tabs"
],
<% if target == 'chrome' %>
"host_permissions": [
"<all_urls>"
],
<% end %>
<% if target == 'firefox' %>
"browser_specific_settings": {
"gecko": {
"id": "[email protected]"
}
},
<% end %>
"short_name": "Tabhunter",
"version": "<%= version %>"
}