Created script for building firefox package file
This commit is contained in:
parent
e65dba16b9
commit
d6bc0b25b4
1 changed files with 22 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
||||||
|
import json
|
||||||
|
|
||||||
|
with open("../package.json") as json_file:
|
||||||
|
project_package = json.load(json_file)
|
||||||
|
|
||||||
|
with open("package.json") as json_file:
|
||||||
|
ext_package = json.load(json_file)
|
||||||
|
|
||||||
|
switcher = {
|
||||||
|
'name': 'title',
|
||||||
|
'name': 'name',
|
||||||
|
'version': 'version',
|
||||||
|
'description': 'description',
|
||||||
|
'author': 'author',
|
||||||
|
'license': 'license'
|
||||||
|
}
|
||||||
|
|
||||||
|
for key, value in enumerate(switcher):
|
||||||
|
ext_package[value] = project_package[key]
|
||||||
|
|
||||||
|
with open('package.json', 'w') as file:
|
||||||
|
json.dump(ext_package, file)
|
Reference in a new issue