mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Don't need symlinks for linux
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user