Skip to main content

Crate silicon_apps_package

Crate silicon_apps_package 

Source
Expand description

Portable, deterministic Silicon Apps archives. No function executes package content.

Structs§

InstallScript
An install script as packaged for one target.
Manifest
Target
ValidationReport

Constants§

MAX_ARCHIVE_BYTES
MAX_ENTRIES
MAX_EXTRACTED_BYTES
MAX_INSTALL_SCRIPT_BYTES
Install scripts larger than this are refused when read for display or signing.
TARGETS

Functions§

current_target
extract_archive
Extract into a new, empty directory owned by the caller. Never follows archive links.
inspect_archive
Inspect without executing any content. Reject path traversal, duplicate entries, hard/symlinks, device files, bombs and missing target artifacts before returning the manifest.
install_script
The install script target runs, with its digest and bytes, or None when the target has no install script. Check the archive with inspect_archive first; this reads only the script.
pack_directory
Build identical bytes for identical file content and executable modes, independent of timestamps.
read_archive_file
Read one regular file from a .tar.gz without extracting anything else. Returns None when the archive has no regular file at path. Leading ./ segments are ignored on both sides.
safe_path
sha256
strict_version
valid_app_id
valid_existing_app_id
Historical Accounts apps (for example dm) retain their existing identifiers. New app creation still uses valid_app_id; manifests reference an existing app.
validate_directory