Don't need symlinks for linux

This commit is contained in:
Caelan Sayler
2024-03-26 13:15:16 +00:00
parent 67dc3174cc
commit 9004a6cb3c

View File

@@ -191,6 +191,7 @@ impl BundleInfo<'_> {
Ok(idx)
}
#[cfg(not(target_os = "linux"))]
fn create_symlink(link_path: &PathBuf, target_path: &PathBuf) -> Result<()> {
#[cfg(target_os = "windows")]
{
@@ -213,7 +214,7 @@ impl BundleInfo<'_> {
}
#[cfg(not(target_os = "windows"))]
{
std::os::unix::fs::symlink(absolute_path, link_path)?;
std::os::unix::fs::symlink(target_path, link_path)?;
}
Ok(())
}