Creates a qchat.zip under the build directory.
(chat_path: pathlib.Path, signing_data: CdSigningData | None)
| 374 | |
| 375 | |
| 376 | def build_macos(chat_path: pathlib.Path, signing_data: CdSigningData | None): |
| 377 | """ |
| 378 | Creates a qchat.zip under the build directory. |
| 379 | """ |
| 380 | chat_dst = BUILD_DIR / CHAT_BINARY_NAME |
| 381 | chat_dst.unlink(missing_ok=True) |
| 382 | shutil.copy2(chat_path, chat_dst) |
| 383 | |
| 384 | if signing_data: |
| 385 | chat_dst = sign_and_notarize(signing_data, chat_dst) |
| 386 | |
| 387 | zip_path = BUILD_DIR / f"{CHAT_BINARY_NAME}.zip" |
| 388 | zip_path.unlink(missing_ok=True) |
| 389 | |
| 390 | info(f"Creating zip output to {zip_path}") |
| 391 | run_cmd(["zip", "-j", zip_path, chat_dst], cwd=BUILD_DIR) |
| 392 | generate_sha(zip_path) |
| 393 | |
| 394 | |
| 395 | class GpgSigner: |
no test coverage detected