Skip to content

Commit b0f19cc

Browse files
committed
fix README location in zip
1 parent a7ef777 commit b0f19cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

circuitpython_build_tools/scripts/build_bundles.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ def build_bundle(libs, bundle_version, output_filename,
109109
build_metadata = {"build-tools-version": build_tools_version}
110110
bundle.comment = json.dumps(build_metadata).encode("utf-8")
111111
if multiple_libs:
112-
total_size += add_file(bundle, "README.txt", "lib/README.txt")
112+
readme_zip_dir = build_dir.replace(".zip", "")
113+
total_size += add_file(bundle, "README.txt", os.path.join(readme_zip_dir.replace("-", "_"), "README.txt"))
113114
for root, dirs, files in os.walk(build_dir):
114115
ziproot = root[len(build_dir + "/"):].replace("-", "_")
115116
for filename in files:

0 commit comments

Comments
 (0)