aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/config.json9
-rw-r--r--tools/build_meta.py10
2 files changed, 12 insertions, 7 deletions
diff --git a/meta/config.json b/meta/config.json
index f5b8010..a396a7d 100644
--- a/meta/config.json
+++ b/meta/config.json
@@ -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"
}
diff --git a/tools/build_meta.py b/tools/build_meta.py
index e0c17bf..4aa2be1 100644
--- a/tools/build_meta.py
+++ b/tools/build_meta.py
@@ -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))