pub fn install_macos_app(
app: &Path,
bin_dir: &Path,
bin_name: &str,
) -> Result<()>Expand description
Common install pattern for macOS .app bundles built from source.
- symlink the binary into
bin_dir - make it executable
- copy the
.appbundle into/Applicationswith an atomic swap
ยงErrors
- If symlink creation fails.
- If chmod fails.
- If copy to
/Applicationsfails.