Skip to content

Commit 605cb86

Browse files
authored
Merge pull request #1954 from 0xc0170/fix_project_report
Export - project name fix (.zip)
2 parents 44e706e + 7c08e36 commit 605cb86

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/project.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,10 @@
212212
# Export to selected toolchain
213213
tmp_path, report = export(project_dir, project_name, ide, mcu, project_dir[0], project_temp, clean=clean, zip=zip, extra_symbols=lib_symbols, relative=sources_relative)
214214
if report['success']:
215-
zip_path = join(EXPORT_DIR, "%s_%s_%s.zip" % (project_name, ide, mcu))
216-
if zip:
215+
if not zip:
216+
zip_path = join(project_temp, "%s_%s" % (project_name, mcu))
217+
else:
218+
zip_path = join(EXPORT_DIR, "%s_%s_%s.zip" % (project_name, ide, mcu))
217219
move(tmp_path, zip_path)
218220
successes.append("%s::%s\t%s"% (mcu, ide, zip_path))
219221
else:

0 commit comments

Comments
 (0)