pub struct DebianSettings {Show 14 fields
pub depends: Option<Vec<String>>,
pub recommends: Option<Vec<String>>,
pub provides: Option<Vec<String>>,
pub conflicts: Option<Vec<String>>,
pub replaces: Option<Vec<String>>,
pub files: HashMap<PathBuf, PathBuf>,
pub desktop_template: Option<PathBuf>,
pub section: Option<String>,
pub priority: Option<String>,
pub changelog: Option<PathBuf>,
pub pre_install_script: Option<PathBuf>,
pub post_install_script: Option<PathBuf>,
pub pre_remove_script: Option<PathBuf>,
pub post_remove_script: Option<PathBuf>,
}
Expand description
The Linux debian bundle settings.
Fields§
§depends: Option<Vec<String>>
the list of debian dependencies.
recommends: Option<Vec<String>>
the list of debian dependencies recommendations.
provides: Option<Vec<String>>
the list of dependencies the package provides.
conflicts: Option<Vec<String>>
the list of package conflicts.
replaces: Option<Vec<String>>
the list of package replaces.
files: HashMap<PathBuf, PathBuf>
List of custom files to add to the deb package. Maps the path on the debian package to the path of the file to include (relative to the current working directory).
desktop_template: Option<PathBuf>
Path to a custom desktop file Handlebars template.
Available variables: categories
, comment
(optional), exec
, icon
and name
.
Default file contents:
[Desktop Entry]
Categories={{categories}}
{{#if comment}}
Comment={{comment}}
{{/if}}
Exec={{exec}}
Icon={{icon}}
Name={{name}}
Terminal=false
Type=Application
{{#if mime_type}}
MimeType={{mime_type}}
{{/if}}
section: Option<String>
Define the section in Debian Control file. See : https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
priority: Option<String>
Change the priority of the Debian Package. By default, it is set to optional
.
Recognized Priorities as of now are : required
, important
, standard
, optional
, extra
changelog: Option<PathBuf>
Path of the uncompressed Changelog file, to be stored at /usr/share/doc/package-name/changelog.gz. See https://www.debian.org/doc/debian-policy/ch-docs.html#changelog-files-and-release-notes
pre_install_script: Option<PathBuf>
Path to script that will be executed before the package is unpacked. See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
post_install_script: Option<PathBuf>
Path to script that will be executed after the package is unpacked. See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
pre_remove_script: Option<PathBuf>
Path to script that will be executed before the package is removed. See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
post_remove_script: Option<PathBuf>
Path to script that will be executed after the package is removed. See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
Trait Implementations§
Source§impl Clone for DebianSettings
impl Clone for DebianSettings
Source§fn clone(&self) -> DebianSettings
fn clone(&self) -> DebianSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DebianSettings
impl Debug for DebianSettings
Source§impl Default for DebianSettings
impl Default for DebianSettings
Source§fn default() -> DebianSettings
fn default() -> DebianSettings
Auto Trait Implementations§
impl Freeze for DebianSettings
impl RefUnwindSafe for DebianSettings
impl Send for DebianSettings
impl Sync for DebianSettings
impl Unpin for DebianSettings
impl UnwindSafe for DebianSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian()
.