Skip to content

Commit

Permalink
Fix iOSSupport module installation destination on linux (#333)
Browse files Browse the repository at this point in the history
Description
===========

The `iOSSupport` module is the only package on `macOS` which is archived
based on a different base directory than all other packages. This is sadly
also true for the linux version of the module. So I adjusted the installation
destination when the package destination contains `iOSSupport` in the path.
  • Loading branch information
Larusso authored Feb 18, 2022
1 parent de1af43 commit a69c7b4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions install/uvm_install_core/src/sys/linux/xz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,22 @@ impl InstallHandler for ModuleXzInstaller {

let destination = self.destination();
let installer = self.installer();
let destination = if destination.ends_with("Editor/Data/PlaybackEngines/iOSSupport") {
debug!("adjust install destination for iOSSupport module");
destination.parent()
.ok_or_else(|| {
io::Error::new(
io::ErrorKind::NotFound,
format!(
"Can't determine destination for {} and destination {}",
&installer.display(),
destination.display()
),
)
})?
} else {
destination
};

let destination = if destination.ends_with("Editor/Data/PlaybackEngines") {
destination
Expand Down

0 comments on commit a69c7b4

Please sign in to comment.