#[non_exhaustive]pub struct AppImageConfig {
pub libs: Option<Vec<String>>,
pub bins: Option<Vec<String>>,
pub files: Option<HashMap<String, String>>,
pub linuxdeploy_plugins: Option<HashMap<String, String>>,
pub excluded_libs: Option<Vec<String>>,
}Expand description
The Linux AppImage configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.libs: Option<Vec<String>>List of libs that exist in /usr/lib* to be include in the final AppImage.
The libs will be searched for, using the command
find -L /usr/lib* -name <libname>
bins: Option<Vec<String>>List of binary paths to include in the final AppImage.
For example, if you want xdg-open, you’d specify /usr/bin/xdg-open
files: Option<HashMap<String, String>>List of custom files to add to the appimage package. Maps a dir/file to a dir/file inside the appimage package.
linuxdeploy_plugins: Option<HashMap<String, String>>A map of linuxdeploy
plugin name and its URL to be downloaded and executed while packaing the appimage.
For example, if you want to use the
gtk plugin,
you’d specify gtk as the key and its url as the value.
excluded_libs: Option<Vec<String>>List of globs of libraries to exclude from the final AppImage.
For example, to exclude libnss3.so, you’d specify libnss3*
Implementations§
Source§impl AppImageConfig
impl AppImageConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new DebianConfig.
Sourcepub fn libs<I, S>(self, libs: I) -> Self
pub fn libs<I, S>(self, libs: I) -> Self
Set the list of libs that exist in /usr/lib* to be include in the final AppImage.
The libs will be searched for using, the command
find -L /usr/lib* -name <libname>
Sourcepub fn bins<I, S>(self, bins: I) -> Self
pub fn bins<I, S>(self, bins: I) -> Self
Set the list of binary paths to include in the final AppImage.
For example, if you want xdg-open, you’d specify /usr/bin/xdg-open
Sourcepub fn files<I, S, T>(self, files: I) -> Self
pub fn files<I, S, T>(self, files: I) -> Self
Set the list of custom files to add to the appimage package. Maps a dir/file to a dir/file inside the appimage package.
Sourcepub fn linuxdeploy_plugins<I, S, T>(self, linuxdeploy_plugins: I) -> Self
pub fn linuxdeploy_plugins<I, S, T>(self, linuxdeploy_plugins: I) -> Self
Set the map of linuxdeploy
plugin name and its URL to be downloaded and executed while packaing the appimage.
For example, if you want to use the
gtk plugin,
you’d specify gtk as the key and its url as the value.
Trait Implementations§
Source§impl Clone for AppImageConfig
impl Clone for AppImageConfig
Source§fn clone(&self) -> AppImageConfig
fn clone(&self) -> AppImageConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AppImageConfig
impl Debug for AppImageConfig
Source§impl Default for AppImageConfig
impl Default for AppImageConfig
Source§fn default() -> AppImageConfig
fn default() -> AppImageConfig
Source§impl<'de> Deserialize<'de> for AppImageConfig
impl<'de> Deserialize<'de> for AppImageConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for AppImageConfig
impl RefUnwindSafe for AppImageConfig
impl Send for AppImageConfig
impl Sync for AppImageConfig
impl Unpin for AppImageConfig
impl UnwindSafe for AppImageConfig
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more