Skip to main content

install_macos_app

Function install_macos_app 

Source
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.

  1. symlink the binary into bin_dir
  2. make it executable
  3. copy the .app bundle into /Applications with an atomic swap

ยงErrors

  • If symlink creation fails.
  • If chmod fails.
  • If copy to /Applications fails.