Skip to content

Commit

Permalink
Fix adding KiCad version to filename in build_kicad_addon.py
Browse files Browse the repository at this point in the history
  • Loading branch information
30350n committed Sep 21, 2024
1 parent d4cf2be commit d3dfdc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_kicad_addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def build_kicad_addon(
):
metadata: dict = json.loads((path / "metadata.json").read_text())

version = metadata["versions"][0]["version"]
zip_file_path = output_path / f"{path.name}_{version.replace('.', '-')}.zip"
version_str = metadata["versions"][0]["version"].replace(".", "-")
kicad_version_str = metadata["versions"][0]["kicad_version"].replace(".", "-")
zip_file_path = output_path / f"{path.name}_v{version_str}_k{kicad_version_str}.zip"
with ZipFile(zip_file_path, mode="w", compression=ZIP_DEFLATED) as zip_file:
plugin_dir = Path("plugins")

Expand Down

0 comments on commit d3dfdc9

Please sign in to comment.