Expand description
Portable, deterministic Silicon Apps archives. No function executes package content.
Structs§
- Install
Script - An install script as packaged for one target.
- Manifest
- Target
- Validation
Report
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
targetruns, with its digest and bytes, orNonewhen the target has no install script. Check the archive withinspect_archivefirst; 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.gzwithout extracting anything else. ReturnsNonewhen the archive has no regular file atpath. 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 usesvalid_app_id; manifests reference an existing app. - validate_
directory