package oui
Module Oui.Macos_postinstallSource
Source
val generate_postinstall_script :
env:(string * string) list ->
app_name:string ->
binary_name:string ->
has_binary:bool ->
?plugins:Installer_config.plugin list ->
unit ->
stringGenerate 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
Source
val generate_uninstall_script :
app_name:string ->
binary_name:string ->
has_binary:bool ->
plugins:Installer_config.plugin list ->
stringGenerate 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
Source
val save_postinstall_script :
content:string ->
scripts_dir:OpamFilename.Dir.t ->
OpamFilename.tSave postinstall script to the scripts directory with executable permissions.
Source
val save_uninstall_script :
content:string ->
resources_dir:OpamFilename.Dir.t ->
OpamFilename.tSave uninstall script to the resources directory with executable permissions.