forked from sneakypete81/updatescanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
196 lines (181 loc) · 5.27 KB
/
config.py
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
#!/usr/bin/env python
# coding=UTF-8
import sys
version = "3.2.1" # Don't forget to update upgrade.js too!
publish_babelzilla = False # True = include incomplete locales for babelzilla
only_english = False # True = only include english for beta releases
app = 'updatescan'
name = 'Update Scanner'
description = 'Monitors webpages for updates'
author = 'Pete Burgers'
contributors = ['Karol Misiura (Tango Desktop Project Icons)']
translators = ['stoyan (български език)',
'PetrTwo (Čeština)',
'Jørgen (Dansk)',
'123tp (Dansk)',
'Archaeopteryx (Deutsch)'
'Team erweiterungen.de (Deutsch)',
'Proyecto Nave (Español)',
'Chuzo (Español)',
'Olli (Suomeksi)',
'myahoo (Français)',
'JZsolt (Magyar)',
'Almotasim (Italiano)',
'藤本理弘 (日本語)',
'Jeong Seungwon (한국어)',
'Edvard (Funalien) Borovskij (lietuvių kalba)',
'Lauriote (lietuvių kalba)',
'Mark Heijl (Nederlands)',
'Leszek (teo) Życzkowski (Polski)',
'Raryel Costa Souza (português brasileiro)',
'Edgard Dias Magalhães (português brasileiro)',
'Edvard (Funalien) Borovskij (Русский)',
'Slovak Team (Slovenčina)',
'Mikael Hiort af Ornäs (Svenska)',
'Kenan Balamir (Türkçe)',
'Wang King (简化字 - zh-CN)',
'Peter Pin-Guang Chen (簡化字 - zh-TW)',
]
authorURL = "http://sneakypete81.github.io/updatescanner/"
uid = 'c07d1a49-9894-49ff-a594-38960ede8fb9'
optionsChrome = 'chrome://updatescan/content/preferences.xul'
if len(sys.argv) > 1 and sys.argv[1] == "dev":
in_development = True
else:
in_development = False
if in_development:
version = version + "+"
homepageURL = "http://sneakypete81.github.io/updatescanner/"
allowUpdate = False
updateURL = "%(homepageURL)s/update.rdf" % vars()
if in_development:
updateFile = "%(app)s-dev.xpi" % vars()
else:
updateFile = "%(app)s-%(version)s.xpi" % vars()
updateLink = "%(homepageURL)s/%(updateFile)s" % vars()
firefoxUID = 'ec8030f7-c20a-464f-9b0e-13a3a9e97384'
firefoxMinVersion = '32.0'
firefoxMaxVersion = '32.0'
overlays = (
# overlay this on that
('%(app)s/content/browser.xul' % vars(), 'browser/content/browser.xul' % vars()),
)
stylesheets = (
# overlay this on that
('%(app)s/skin/updatescanoverlay.css' % vars(), 'global/content/customizeToolbar.xul' % vars()),
)
skins = {
'classic': {
'skin_version': '1.0',
'display_name': name,
'extras': [{'os_code': '', 'os_path': 'linux'},
{'os_code': 'os=WINNT', 'os_path': 'win'},
{'os_code': 'os=Darwin', 'os_path': 'win'}, # Mac can use Windows icons
],
},
}
locales = {
'bg-BG': {
'locale_version': '1.0',
'display_name': name,
},
'cs': {
'locale_version': '1.0',
'display_name': name,
},
'da': {
'locale_version': '1.0',
'display_name': name,
},
'de': {
'locale_version': '1.0',
'display_name': name,
},
'en-US': {
'locale_version': '1.0',
'display_name': name,
},
'es-ES': {
'locale_version': '1.0',
'display_name': name,
},
'fi-FI': {
'locale_version': '1.0',
'display_name': name,
},
'fr': {
'locale_version': '1.0',
'display_name': name,
},
'hu-HU': {
'locale_version': '1.0',
'display_name': name,
},
'it-IT': {
'locale_version': '1.0',
'display_name': name,
},
'ja-JP': {
'locale_version': '1.0',
'display_name': name,
},
'ko-KR': {
'locale_version': '1.0',
'display_name': name,
},
'lt-LT': {
'locale_version': '1.0',
'display_name': name,
},
'nl': {
'locale_version': '1.0',
'display_name': name,
},
'pl': {
'locale_version': '1.0',
'display_name': name,
},
'pt-BR': {
'locale_version': '1.0',
'display_name': name,
},
'ru-RU': {
'locale_version': '1.0',
'display_name': name,
},
'sk-SK': {
'locale_version': '1.0',
'display_name': name,
},
'sv-SE': {
'locale_version': '1.0',
'display_name': name,
},
'tr-TR': {
'locale_version': '1.0',
'display_name': name,
},
'zh-CN': {
'locale_version': '1.0',
'display_name': name,
},
'zh-TW': {
'locale_version': '1.0',
'display_name': name,
},
}
incomplete_locales = {
'ms-MY': {
'locale_version': '1.0',
'display_name': name,
},
}
# Only include incomplete locales if we're building for babelzilla
if publish_babelzilla:
print "*** Babelzilla version - includes incomplete locales ***"
locales.update(incomplete_locales)
if only_english:
print "*** English-only version - only use for betas! ***"
locales = {
'en-US': {'locale_version': '1.0','display_name': name}
}