package oui

  1. Overview
  2. Docs
A tool that builds standalone installers for your OCaml applications

Install

dune-project
 Dependency

Authors

Maintainers

Sources

oui-0.1.0.tbz
sha256=b806a63c9acd581a00729a48f1faf86b294cc82936fc705fc628a20ede33f977
sha512=e61c35a6e08671634c1edabd7b0add926ac6e0c6c43c9e0a095e89efab7696b6ae5cc1ea0844283a80640c19adb36478bdfb2414bbcab5077ceb7fd16ae45e66

doc/oui.lib/Oui/Macos_postinstall/index.html

Module Oui.Macos_postinstallSource

Sourceval generate_postinstall_script : env:(string * string) list -> app_name:string -> binary_name:string -> has_binary:bool -> ?plugins:Installer_config.plugin list -> unit -> string

Generate postinstall script content for macOS .pkg installers.

The postinstall script:

  • Creates wrapper scripts from /usr/local/bin to the .app bundle binaries
  • Installs manpages from the .app bundle to /usr/local/share/man
  • For plugin packages: creates symlinks into target app's bundle
Sourceval generate_uninstall_script : app_name:string -> binary_name:string -> has_binary:bool -> plugins:Installer_config.plugin list -> string

Generate uninstall script content for macOS .pkg installers.

The uninstall script:

  • Removes the wrapper from /usr/local/bin
  • Removes manpage symlinks
  • For plugin packages: removes symlinks from target app's bundle
  • Removes the .app bundle
Sourceval save_postinstall_script : content:string -> scripts_dir:OpamFilename.Dir.t -> OpamFilename.t

Save postinstall script to the scripts directory with executable permissions.

Sourceval save_uninstall_script : content:string -> resources_dir:OpamFilename.Dir.t -> OpamFilename.t

Save uninstall script to the resources directory with executable permissions.