# longdirtyanimalf/fpcupdeluxe architecture

> Architecture diagram of the GitHub repository longdirtyanimalf/fpcupdeluxe, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/longdirtyanimalf/fpcupdeluxe
- Repository: https://github.com/longdirtyanimalf/fpcupdeluxe

## Overview

##### Main Components

a) Core Components:
- Installation Manager (central controller)
- Cross-compiler System
- Build System
- Package Management
- Logging System
- GUI Interface

b) External Dependencies:
- Version Control Systems (SVN, Git, Mercurial)
- Build Tools (Make, Binutils)
- Network Services (for downloads and logging)

##### Key Relationships to Highlight

- Data flow between GUI and core logic
- Dependencies between components
- Build process flow
- Cross-compilation paths

##### Implementation Details

Implementation aspects:
- mORMot framework integration for logging
- DCPcrypt for security
- Synaser for serial communication
- Custom wrappers and tools

##### Integration with external tools and services

Remember to include version control integration points, build system interfaces, and cross-compilation paths as these are central to the application's functionality.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Styles
    classDef gui fill:#b3d9ff,stroke:#333
    classDef core fill:#90EE90,stroke:#333
    classDef service fill:#FFB366,stroke:#333
    classDef external fill:#D3D3D3,stroke:#333
    classDef cross fill:#DDA0DD,stroke:#333
    classDef logger fill:#FFD700,stroke:#333

    %% GUI Layer
    subgraph GUI
        MainForm["Main Form"]:::gui
        Settings["Settings Interface"]:::gui
        ModuleSettings["Module Settings"]:::gui
        About["About Screen"]:::gui
    end

    %% Core Layer
    subgraph Core
        InstallManager["Installation Manager"]:::core
        InstallCore["Installer Core"]:::core
        InstallBase["Installer Base"]:::core
        FPCInstaller["FPC Installer"]:::core
        LazInstaller["Lazarus Installer"]:::core
    end

    %% Cross-compiler Layer
    subgraph CrossCompile
        CrossBase["Cross-compiler Base"]:::cross
        PlatformSpecific["Platform Specific Installers"]:::cross
    end

    %% Logging System
    subgraph Logging
        LogCore["Logging Core"]:::logger
        LogServer["Log Server"]:::logger
        LogClient["Log Client"]:::logger
    end

    %% Version Control
    subgraph VersionControl
        SVN["SVN Client"]:::service
        Git["Git Client"]:::service
        HG["Mercurial Client"]:::service
    end

    %% Network Services
    subgraph Network
        FTP["FTP Client"]:::service
        LibCurl["LibCurl Integration"]:::service
    end

    %% Security
    subgraph Security
        Encryption["Encryption"]:::service
        Hashing["Hashing"]:::service
    end

    %% Build System
    subgraph BuildSystem
        BuildScripts["Build Scripts"]:::core
        InstallScripts["Installation Scripts"]:::core
    end

    %% Relationships
    MainForm --> InstallManager
    MainForm --> ModuleSettings
    MainForm --> Settings
    MainForm --> About
    InstallManager --> InstallCore
    InstallCore --> InstallBase
    InstallBase --> FPCInstaller
    InstallBase --> LazInstaller
    InstallCore --> CrossBase
    CrossBase --> PlatformSpecific
    InstallManager --> LogCore
    LogCore --> LogServer
    LogCore --> LogClient
    InstallManager --> SVN
    InstallManager --> Git
    InstallManager --> HG
    InstallManager --> FTP
    InstallManager --> LibCurl
    InstallCore --> BuildScripts
    InstallCore --> InstallScripts
    InstallCore --> Encryption
    InstallCore --> Hashing

    %% Click Events
    click MainForm "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/updeluxe/fpcupdeluxemainform.pas"
    click Settings "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/updeluxe/extrasettings.pas"
    click ModuleSettings "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/updeluxe/modulesettings.pas"
    click About "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/updeluxe/aboutfrm.pas"
    click InstallCore "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/installercore.pas"
    click InstallBase "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/installerbase.pas"
    click InstallManager "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/installermanager.pas"
    click FPCInstaller "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/installerfpc.pas"
    click LazInstaller "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/installerlazarus.pas"
    click CrossBase "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/crossinstallers/m_crossinstaller.pas"
    click PlatformSpecific "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/crossinstallers/m_any_to_*.pas"
    click LogCore "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/logger/mormotdatamodel.inc"
    click LogServer "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/logger/mormotdatamodelserver.pas"
    click LogClient "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/logger/mormotdatamodelclient.pas"
    click SVN "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/svnclient.pas"
    click Git "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/gitclient.pas"
    click HG "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/hgclient.pas"
    click FTP "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/fpftpclient.pas"
    click LibCurl "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/sources/fpcuplibcurl.pas"
    click Encryption "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/dcpcrypt/dcpcrypt2.pas"
    click Hashing "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/blob/master/dcpcrypt/Hashes/dcpsha256.pas"
    click BuildScripts "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/tree/master/crosstoolsbuildscripts/"
    click InstallScripts "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/tree/master/installscripts/"
```
