Overview
| Comment: | [build] fix Firefox extension creation at first build |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | build |
| Files: | files | file ages | folders |
| SHA3-256: |
9f851258d7d1499fa61a6881615b9a37 |
| User & Date: | olr on 2017-05-26 10:14:20 |
| Other Links: | manifest | tags |
Context
|
2017-05-26
| ||
| 10:16 | [doc] update about the first build check-in: d0368a79eb user: olr tags: trunk, doc | |
| 10:14 | [build] fix Firefox extension creation at first build check-in: 9f851258d7 user: olr tags: trunk, build | |
| 06:31 | [fr] +1 test check-in: de5cae04cf user: olr tags: trunk, fr | |
Changes
Modified make.py from [9e01013e33] to [a4db34e055].
| ︙ | ︙ | |||
229 230 231 232 233 234 235 |
dProperties[sLang] = "\n".join( [ "option_" + sOpt + " = " + dVars['dOptLabel'][sLang][sOpt][0].replace(" [!]", " [!]") for sOpt in dVars['dOptLabel'][sLang] ] )
return sHTML, dProperties
def createFirefoxExtension (sLang, dVars):
"create extension for Firefox"
print("Building extension for Firefox")
| | | 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 |
dProperties[sLang] = "\n".join( [ "option_" + sOpt + " = " + dVars['dOptLabel'][sLang][sOpt][0].replace(" [!]", " [!]") for sOpt in dVars['dOptLabel'][sLang] ] )
return sHTML, dProperties
def createFirefoxExtension (sLang, dVars):
"create extension for Firefox"
print("Building extension for Firefox")
createCleanFolder("_build/xpi/"+sLang)
dir_util.copy_tree("gc_lang/"+sLang+"/xpi/", "_build/xpi/"+sLang)
dir_util.copy_tree("grammalecte-js", "_build/xpi/"+sLang+"/grammalecte")
sHTML, dProperties = createOptionsForFirefox(dVars)
dVars['optionsHTML'] = sHTML
copyAndFileTemplate("_build/xpi/"+sLang+"/data/about_panel.html", "_build/xpi/"+sLang+"/data/about_panel.html", dVars)
for sLocale in dProperties.keys():
spfLocale = "_build/xpi/"+sLang+"/locale/"+sLocale+".properties"
|
| ︙ | ︙ |