19b1b8bd4752 — Joe Ulfers 1.1 4 years ago
Validation error: missing manifest. I guess the zip cannot have a root folder.
1 files changed, 2 insertions(+), 3 deletions(-)

M release.py
M release.py +2 -3
@@ 21,13 21,12 @@ version = manifest['version']
 # Properly speaking, you'd build the zip from the tagged source, but doing it in this order is ok
 # for this project's simple versioning, and doesn't require rolling back the tag if zipping fails
-zip_root = 'ksx-%s' % version
-with ZipFile('_build/%s.zip' % zip_root, 'w') as package:
+with ZipFile('_build/ksx-%s.zip' % version, 'w') as package:
     for root, dirs, files in os.walk(str(addon_root)):
         for f in files:
             source = Path(root)/f
             rel = source.relative_to(addon_root)
-            package.write(str(source), '%s/%s' % (zip_root, rel))
+            package.write(str(source), str(rel))
 check_output(['hg', 'tag', '-m', 'Release tag %s' % version, version])