pub struct PkgSpec {
pub name: String,
pub display_name: String,
pub identifier: String,
pub version: String,
pub install_location: String,
pub enable_user_home: bool,
pub files: Vec<FileSpec>,
pub directories: Vec<DirSpec>,
pub scripts: Option<PathBuf>,
}Expand description
Everything needed to author one product archive. Deliberately independent of the embala config types so the crate is usable on its own.
Fields§
§name: StringPackage name; names the artifact and the inner <name>.pkg component.
display_name: StringHuman name: the Distribution <title> Installer.app displays.
identifier: StringReverse-DNS package identifier (pkgutil receipt id).
version: String§install_location: StringAbsolute path the payload tree installs under (e.g. /usr/local).
enable_user_home: boolAdds enable_currentUserHome to the Distribution’s <domains> so
installer -target CurrentUserHomeDirectory is legal (the sudo-free
install path).
files: Vec<FileSpec>§directories: Vec<DirSpec>§scripts: Option<PathBuf>Directory packed as the component’s Scripts archive, like
pkgbuild --scripts: every file ships (helpers included), and a
top-level preinstall/postinstall is referenced from PackageInfo.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PkgSpec
impl RefUnwindSafe for PkgSpec
impl Send for PkgSpec
impl Sync for PkgSpec
impl Unpin for PkgSpec
impl UnsafeUnpin for PkgSpec
impl UnwindSafe for PkgSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more