pub struct WslInstallConfig {
pub app_name: String,
pub shell_block: String,
pub linux_binary_path: Option<PathBuf>,
pub linux_binary_target: Option<String>,
pub auto_install_linux_release: Option<LinuxReleaseSpec>,
pub linux_binaries_to_remove: Vec<String>,
}Expand description
Configuration for WSL installation.
Fields§
§app_name: StringApplication name (used in markers and messages).
shell_block: StringShell block content to inject (the script body, without markers).
linux_binary_path: Option<PathBuf>Optional: path to a Linux binary to copy into each distro.
linux_binary_target: Option<String>Target path for the Linux binary inside each distro
(relative to home, e.g., .local/bin/myapp).
auto_install_linux_release: Option<LinuxReleaseSpec>Optional: download a matching Linux release tarball from
GitHub at install time and extract the named binaries into
/usr/local/bin/. Replaces the old socat+npiperelay dance.
linux_binaries_to_remove: Vec<String>Binaries to remove from /usr/local/bin/ on unconfigure.
Set regardless of release/dev status so a sshenc uninstall
from a dev build still removes binaries installed by a prior
release build. Leave empty for apps that don’t install to
/usr/local/bin/ (e.g. apps that only use linux_binary_target).
Trait Implementations§
Source§impl Clone for WslInstallConfig
impl Clone for WslInstallConfig
Source§fn clone(&self) -> WslInstallConfig
fn clone(&self) -> WslInstallConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more