mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Building Info.plist was missing
This commit is contained in:
parent
f6f85ec793
commit
54749b31fb
2 changed files with 12 additions and 7 deletions
|
@ -4,7 +4,6 @@
|
|||
"url": "https://github.com/gorhill/uBlock",
|
||||
"author": "Raymond Hill",
|
||||
"author_email": "rhill@raymondhill.net",
|
||||
"author_www": "http://raymondhill.net/",
|
||||
"version": "0.7.0.7",
|
||||
"def_lang": "en",
|
||||
"vendors": {
|
||||
|
@ -17,13 +16,9 @@
|
|||
},
|
||||
"safariextz": {
|
||||
"app_id": "net.gorhill.uBlock",
|
||||
"dir": "uBlock.safariextension",
|
||||
"manifest": {
|
||||
"Info": "Info.plist",
|
||||
"Settings": "Settings.plist"
|
||||
},
|
||||
"manifest": "Info.plist",
|
||||
"file_ext": ".safariextz",
|
||||
"developer_identifier": "T7HSFKB9M5",
|
||||
"developer_identifier": "",
|
||||
"cert_dir": "../meta/safariextz/certs/",
|
||||
"cert_key": "../meta/safariextz/certs/key.pem"
|
||||
}
|
||||
|
|
|
@ -97,3 +97,13 @@ with open(pj(src_dir, vendors['crx']['manifest']), 'wt', encoding='utf-8', newli
|
|||
f.write(
|
||||
re.sub(r"\{(?=\W)|(?<=\W)\}", r'\g<0>\g<0>', cf_content).format(**config)
|
||||
)
|
||||
|
||||
|
||||
with open(pj(src_dir, vendors['safariextz']['manifest']), 'wt', encoding='utf-8', newline='\n') as f:
|
||||
config['app_id'] = vendors['safariextz']['app_id']
|
||||
config['description'] = descriptions[config['def_lang']]
|
||||
|
||||
with open(pj(meta_dir, 'safariextz', vendors['safariextz']['manifest']), 'r') as cf:
|
||||
cf_content = cf.read()
|
||||
|
||||
f.write(cf_content.format(**config))
|
||||
|
|
Loading…
Reference in a new issue