1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
use super::*;
use std::convert::From;
use crate::unity::Installation;

const INSTALLATION_BINARY: &str = "Unity.app";

impl From<Installation> for EditorInstallation {
    fn from(installation: Installation) -> Self {
        EditorInstallation {
            version: installation.version().to_owned(),
            location: installation.path().join(INSTALLATION_BINARY),
            manual: true,
        }
    }
}