MCPcopy Create free account
hub / github.com/conda/constructor / sign_bundle

Method sign_bundle

constructor/signing.py:263–276  ·  view source on GitHub ↗
(
        self,
        bundle: str | Path,
        entitlements: str | Path | dict | None = None,
    )

Source from the content-addressed store, hash-verified

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
279def create_windows_signing_tool(info: dict) -> SigningTool | None:

Callers 2

sign_standalone_binaryFunction · 0.80
create_pluginsFunction · 0.80

Calls 2

get_signing_commandMethod · 0.95
explained_check_callFunction · 0.85

Tested by

no test coverage detected