From 47ba5344fb05668e9127e86e90f26bf796f741a9 Mon Sep 17 00:00:00 2001 From: Jan Hrach Date: Tue, 7 Feb 2023 21:37:01 +0100 Subject: [PATCH] jlcpcb: include board name in gerbers.zip instead of just "gerbers.zip" --- kikit/fab/jlcpcb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kikit/fab/jlcpcb.py b/kikit/fab/jlcpcb.py index 6b1e25d5..680f7fe4 100644 --- a/kikit/fab/jlcpcb.py +++ b/kikit/fab/jlcpcb.py @@ -72,7 +72,8 @@ def exportJlcpcb(board, outputdir, assembly, schematic, ignore, field, shutil.rmtree(gerberdir, ignore_errors=True) gerberImpl(board, gerberdir) - archiveName = expandNameTemplate(nametemplate, "gerbers", loadedBoard) + boardName = os.path.basename(board.replace(".kicad_pcb", "")) + archiveName = expandNameTemplate(nametemplate, boardName + "-gerbers", loadedBoard) shutil.make_archive(os.path.join(outputdir, archiveName), "zip", outputdir, "gerber") if not assembly: