@@ 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])