apple-codesign

Crates.ioapple-codesign
lib.rsapple-codesign
version0.28.0
sourcesrc
created_at2022-03-06 18:30:48.015102
updated_at2024-11-03 01:47:41.102462
descriptionPure Rust interface to code signing on Apple platforms
homepagehttps://github.com/indygreg/apple-platform-rs
repositoryhttps://github.com/indygreg/apple-platform-rs.git
max_upload_size
id544615
size2,093,560
Gregory Szorc (indygreg)

documentation

README

apple-codesign

apple-codesign is a crate implementing functionality related to code signing on Apple platforms.

All functionality is implemented in pure Rust and doesn't require any 3rd party or proprietary software nor do we require running on Apple platforms.

We believe this crate provides the most comprehensive implementation of Apple code signing outside the canonical Apple tools. We have support for the following features:

  • Signing Mach-O binaries (the executable file format on Apple operating systems).
  • Signing, notarizing, and stapling directory bundles (e.g. .app directories).
  • Signing, notarizing, and stapling XAR archives / .pkg installers.
  • Signing, notarizing, and stapling DMG disk images.

What this all means is that you can sign, notarize, and release Apple software from anywhere you can get the Rust crate to compile. Linux, Windows, and macOS are officially supported by other operating systems (like BSDs) should work as well.

See the crate documentation at https://docs.rs/apple-codesign/latest/apple_codesign/ and the end-user documentation at https://gregoryszorc.com/docs/apple-codesign/main/ for more.

rcodesign CLI

This crate defines an rcodesign binary which provides a CLI interface to some of the crate's capabilities. To install:

# From a Git checkout
$ cargo run --bin rcodesign -- --help
$ cargo install --bin rcodesign

# Remote install.
$ cargo install --git https://github.com/indygreg/apple-platform-rs --branch main --bin rcodesign apple-codesign
Commit count: 7136

cargo fmt