Index: packagerEdge.py |
=================================================================== |
--- a/packagerEdge.py |
+++ b/packagerEdge.py |
@@ -69,20 +69,17 @@ |
path = '{}/_locales/{}/messages.json'.format(EXTENSION_DIR, locale) |
return json.loads(files[path]) |
- |
Vasily Kuznetsov
2017/09/11 09:49:54
Removing these empty lines seems unrelated and it'
Sebastian Noack
2017/09/11 15:43:10
Sorry, this change was not intended. I added those
|
def pad_version(version): |
"""Make sure version number has 4 groups of digits.""" |
groups = (version.split('.') + ['0', '0', '0'])[:4] |
return '.'.join(groups) |
- |
def create_appx_manifest(params, files, release_build=False): |
"""Create AppxManifest.xml.""" |
params = dict(params) |
metadata = params['metadata'] |
w = params['windows_version'] = {} |
w['min'], w['max'] = metadata.get('compat', 'windows').split('/') |
- params.update(metadata.items('general')) |
params['version'] = pad_version(params['version']) |
metadata_suffix = 'release' if release_build else 'devbuild' |