pub fn adopt_binary(
home: &Path,
binary: &Path,
version: &str,
relink: Option<&Path>,
) -> Result<PathBuf>Expand description
Move binary into <home>/versions/<version>/oxicode (atomic rename
when on the same volume, copy+remove when crossing volumes), flip
the launcher at <home>/bin/oxicode, optionally repoint a cargo/PATH
copy at the launcher, and prune older version dirs (keep 2). Returns
the launcher path.