# corpnewt/gibmacos architecture

> Architecture diagram of the GitHub repository corpnewt/gibmacos, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/corpnewt/gibmacos
- Repository: https://github.com/corpnewt/gibmacos

## Overview

gibMacOS is a Python tool for finding and downloading macOS components directly from Apple. Its primary workflow presents catalog products and downloads selected packages. Separate utilities build Windows Internet Recovery USB installers and, on macOS, reconstruct an installer app from downloaded files. The graph includes the shared download, plist, process, and disk layers. Some implementation details are unsampled; edges are limited to relationships visible in excerpts or documented in the README.

Main entry points: [`MakeInstall.py`](https://github.com/corpnewt/gibmacos/blob/master/MakeInstall.py) (Windows USB Builder), [`gibMacOS.py`](https://github.com/corpnewt/gibmacos/blob/master/gibMacOS.py) (Catalog Browser and Download), [`Scripts/run.py`](https://github.com/corpnewt/gibmacos/blob/master/Scripts/run.py) (Command Runner), [`BuildmacOSInstallApp.py`](https://github.com/corpnewt/gibmacos/blob/master/BuildmacOSInstallApp.py) (macOS App Builder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_download["Catalog and Downloads"]
  node_catalog_download["Catalog Browser and Download<br/>[gibMacOS.py]"]
end

subgraph group_installers["Installer Creation"]
  node_win_usb["Windows USB Builder<br/>[MakeInstall.py]"]
  node_mac_app["macOS App Builder"]
end

subgraph group_shared["Shared Runtime"]
  node_downloader["HTTP Downloader<br/>[downloader.py]"]
  node_plist["Plist Parsing<br/>[plist.py]"]
  node_windows_disks["Windows Disk Discovery<br/>[diskwin.py]"]
  node_mac_disks["macOS Disk Utilities<br/>[disk.py]"]
  node_process["Command Runner<br/>[run.py]"]
  node_utils["Console and Path Utilities<br/>[utils.py]"]
end

node_user(("User"))
node_apple(("Apple Servers"))
node_usb_device[("USB Disk")]
node_installer_files["Downloaded Installer Files"]

node_user -->|"selects products"| node_catalog_download
node_catalog_download -->|"downloads packages"| node_downloader
node_catalog_download -->|"parses catalog"| node_plist
node_catalog_download -->|"uses utilities"| node_utils
node_catalog_download -->|"runs commands"| node_process
node_downloader -->|"fetches components"| node_apple
node_downloader -->|"writes downloads"| node_installer_files
node_user -->|"requests USB creation"| node_win_usb
node_win_usb -->|"queries disks"| node_windows_disks
node_win_usb -->|"downloads tools"| node_downloader
node_win_usb -->|"runs commands"| node_process
node_win_usb -->|"uses utilities"| node_utils
node_windows_disks -->|"runs disk queries"| node_process
node_win_usb -->|"writes installer"| node_usb_device
node_user -->|"provides download folder"| node_mac_app
node_mac_app -->|"reads components"| node_installer_files
node_mac_app -->|"mounts and copies"| node_process
node_mac_app -->|"parses mount data"| node_plist
node_mac_disks -->|"runs disk queries"| node_process

click node_catalog_download "https://github.com/corpnewt/gibmacos/blob/master/gibMacOS.py"
click node_downloader "https://github.com/corpnewt/gibmacos/blob/master/Scripts/downloader.py"
click node_plist "https://github.com/corpnewt/gibmacos/blob/master/Scripts/plist.py"
click node_win_usb "https://github.com/corpnewt/gibmacos/blob/master/MakeInstall.py"
click node_windows_disks "https://github.com/corpnewt/gibmacos/blob/master/Scripts/diskwin.py"
click node_mac_app "https://github.com/corpnewt/gibmacos/blob/master/BuildmacOSInstallApp.py"
click node_mac_disks "https://github.com/corpnewt/gibmacos/blob/master/Scripts/disk.py"
click node_process "https://github.com/corpnewt/gibmacos/blob/master/Scripts/run.py"
click node_utils "https://github.com/corpnewt/gibmacos/blob/master/Scripts/utils.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_catalog_download,node_user toneBlue
class node_win_usb,node_mac_app,node_usb_device toneAmber
class node_downloader,node_plist,node_windows_disks,node_mac_disks,node_process,node_utils,node_apple toneMint
class node_installer_files toneIndigo
```

## Components

### Catalog and Downloads

- [Catalog Browser and Download](https://github.com/corpnewt/gibmacos/blob/master/gibMacOS.py): `gibMacOS.py`

### Installer Creation

- [Windows USB Builder](https://github.com/corpnewt/gibmacos/blob/master/MakeInstall.py): `MakeInstall.py`
- [macOS App Builder](https://github.com/corpnewt/gibmacos/blob/master/BuildmacOSInstallApp.py): `BuildmacOSInstallApp.py`

### Shared Runtime

- [HTTP Downloader](https://github.com/corpnewt/gibmacos/blob/master/Scripts/downloader.py): `Scripts/downloader.py`
- [Plist Parsing](https://github.com/corpnewt/gibmacos/blob/master/Scripts/plist.py): `Scripts/plist.py`
- [Windows Disk Discovery](https://github.com/corpnewt/gibmacos/blob/master/Scripts/diskwin.py): `Scripts/diskwin.py`
- [macOS Disk Utilities](https://github.com/corpnewt/gibmacos/blob/master/Scripts/disk.py): `Scripts/disk.py`
- [Command Runner](https://github.com/corpnewt/gibmacos/blob/master/Scripts/run.py): `Scripts/run.py`
- [Console and Path Utilities](https://github.com/corpnewt/gibmacos/blob/master/Scripts/utils.py): `Scripts/utils.py`

### Other components

- **User**
- **Apple Servers**
- **USB Disk**
- **Downloaded Installer Files**

## Connections

- User → Catalog Browser and Download: selects products (evidence: `Readme.md`)
- Catalog Browser and Download → HTTP Downloader: downloads packages (evidence: `gibMacOS.py`)
- Catalog Browser and Download → Plist Parsing: parses catalog (evidence: `gibMacOS.py`)
- Catalog Browser and Download → Console and Path Utilities: uses utilities (evidence: `gibMacOS.py`)
- Catalog Browser and Download → Command Runner: runs commands (evidence: `gibMacOS.py`)
- HTTP Downloader → Apple Servers: fetches components (evidence: `Readme.md`)
- HTTP Downloader → Downloaded Installer Files: writes downloads (evidence: `Scripts/downloader.py`)
- User → Windows USB Builder: requests USB creation (evidence: `Readme.md`)
- Windows USB Builder → Windows Disk Discovery: queries disks (evidence: `MakeInstall.py`)
- Windows USB Builder → HTTP Downloader: downloads tools (evidence: `MakeInstall.py`)
- Windows USB Builder → Command Runner: runs commands (evidence: `MakeInstall.py`)
- Windows USB Builder → Console and Path Utilities: uses utilities (evidence: `MakeInstall.py`)
- Windows Disk Discovery → Command Runner: runs disk queries (evidence: `Scripts/diskwin.py`)
- Windows USB Builder → USB Disk: writes installer (evidence: `MakeInstall.py`)
- User → macOS App Builder: provides download folder (evidence: `BuildmacOSInstallApp.py`)
- macOS App Builder → Downloaded Installer Files: reads components (evidence: `BuildmacOSInstallApp.py`)
- macOS App Builder → Command Runner: mounts and copies (evidence: `BuildmacOSInstallApp.py`)
- macOS App Builder → Plist Parsing: parses mount data (evidence: `BuildmacOSInstallApp.py`)
- macOS Disk Utilities → Command Runner: runs disk queries (evidence: `Scripts/disk.py`)
