Module Oui.Info_plistSource

Sourcetype value =
  1. | String of string
  2. | Bool of bool
  3. | Dict of (string * value) list
  4. | Array of value list
Sourcetype t = (string * value) list
Sourceval make : (string * value) list -> t

Create a generic plist from key-value pairs.

Sourceval add_entry : string -> value -> t -> t

Add or update an entry in the plist.

Sourceval make_info_plist : bundle_id:string -> executable:string -> name:string -> display_name:string -> version:string -> t

Create a standard Info.plist for a macOS app bundle. Use add_entry to add custom keys like CFBundleIconFile.

Sourceval to_xml : t -> string

Serialize plist to XML format.

Sourceval save : t -> OpamFilename.t -> unit

Write plist to file.