(
self,
bundle: str | Path,
entitlements: str | Path | dict | None = None,
)
| 261 | return command |
| 262 | |
| 263 | def sign_bundle( |
| 264 | self, |
| 265 | bundle: str | Path, |
| 266 | entitlements: str | Path | dict | None = None, |
| 267 | ): |
| 268 | if isinstance(entitlements, dict): |
| 269 | with NamedTemporaryFile(suffix=".plist", delete=False) as ent_file: |
| 270 | plist_dump(entitlements, ent_file) |
| 271 | command = self.get_signing_command(bundle, entitlements=ent_file.name) |
| 272 | explained_check_call(command) |
| 273 | os.unlink(ent_file.name) |
| 274 | else: |
| 275 | command = self.get_signing_command(bundle, entitlements=entitlements) |
| 276 | explained_check_call(command) |
| 277 | |
| 278 | |
| 279 | def create_windows_signing_tool(info: dict) -> SigningTool | None: |
no test coverage detected