(
self,
bundle: str | Path,
entitlements: str | Path | None = None,
)
| 239 | self.prefix = prefix |
| 240 | |
| 241 | def get_signing_command( |
| 242 | self, |
| 243 | bundle: str | Path, |
| 244 | entitlements: str | Path | None = None, |
| 245 | ) -> list: |
| 246 | command = [ |
| 247 | self.executable, |
| 248 | "--sign", |
| 249 | self.identity_name, |
| 250 | "--force", |
| 251 | "--options", |
| 252 | "runtime", |
| 253 | ] |
| 254 | if self.prefix: |
| 255 | command.extend(["--prefix", self.prefix]) |
| 256 | if entitlements: |
| 257 | command.extend(["--entitlements", str(entitlements)]) |
| 258 | if logger.getEffectiveLevel() == logging.DEBUG: |
| 259 | command.append("--verbose") |
| 260 | command.append(str(bundle)) |
| 261 | return command |
| 262 | |
| 263 | def sign_bundle( |
| 264 | self, |
no outgoing calls
no test coverage detected