(platforms)
| 478 | return os.path.join("build", f"{elf_base_name}.app") |
| 479 | |
| 480 | def package_all(platforms): |
| 481 | status = f"Building package with {platforms}" |
| 482 | print_status_busy(status) |
| 483 | if not package_intermediate(platforms): |
| 484 | print_status_error("Building package failed: missing inputs") |
| 485 | return False |
| 486 | # Create build/something.app |
| 487 | try: |
| 488 | tar_path = package_name(platforms) |
| 489 | tar = tarfile.open(tar_path, mode="w", format=tarfile.USTAR_FORMAT) |
| 490 | tar.add(os.path.join("build", "package-intermediate"), arcname="") |
| 491 | tar.close() |
| 492 | print_status_success(status) |
| 493 | return True |
| 494 | except Exception as e: |
| 495 | print_status_error(f"Building package failed: {e}") |
| 496 | return False |
| 497 | |
| 498 | #endregion Packaging |
| 499 |
no test coverage detected