# pkgforge-dev/fex-emu-appimage architecture

> Architecture diagram of the GitHub repository pkgforge-dev/fex-emu-appimage, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pkgforge-dev/fex-emu-appimage
- Repository: https://github.com/pkgforge-dev/fex-emu-appimage

## Overview

#### Purpose and Scope
This is a packaging repository, not the FEX emulator itself. It builds and distributes a portable FEX-Emu AppImage for Linux, intended to bundle runtime dependencies and run without FUSE through `uruntime`. The project is explicitly work-in-progress.

#### Primary Entry Points
- `make-appimage.sh` is the local packaging entry point: it likely assembles FEX and its dependencies into an AppImage.
- `get-dependencies.sh` is the dependency-acquisition stage used before packaging.
- `LATEST_VERSION` provides the version/release input consumed by build or release automation.

#### Build Pipeline
The core control flow is dependency retrieval followed by AppImage assembly:
1. Obtain required upstream artifacts and libraries via `get-dependencies.sh`.
2. Package the resulting application payload through `make-appimage.sh`.
3. Produce an AppImage using Sharun and the Quick-Sharun wrapper, with `uruntime` enabling execution without FUSE.

Relevant paths: `get-dependencies.sh`, `make-appimage.sh`, `LATEST_VERSION`.

#### Packaging Boundary
The repository’s boundary is the portable binary artifact: it wraps upstream FEX-Emu rather than implementing emulator logic. FEX-Emu is an external upstream dependency; Sharun, Quick-Sharun, and uruntime are external packaging/runtime dependencies. The delivered AppImage is expected to encapsulate system libraries and runtime behavior for broad Linux compatibility, including older and musl-based distributions.

Relevant paths: `make-appimage.sh`, `get-dependencies.sh`.

#### CI and Release Automation
GitHub Actions supplies the automated build/release boundary:
- Stable AppImage builds run through `.github/workflows/appimage.yml`.
- Nightly builds run through `.github/workflows/appimage-nightly.yml`.

These workflows are the likely artifact publication path to GitHub Releases, reflected by the README’s stable/latest release links.

#### Update Model
Built artifacts include a self-updater that can notify users of newer releases. The updater is intended to disable itself when recognized AppImage package managers are present, delegating update management to those tools. This is artifact runtime behavior rather than a repository-hosted service.

#### Infrastructure and External Services
Material infrastructure is GitHub Actions and GitHub Releases. External software/services include upstream FEX-Emu, Sharun, Quick-Sharun, uruntime, and optional external AppImage managers. Repository maintenance metadata and issue intake are hosted under `.github/`, including `.github/ISSUE_TEMPLATE/report-bug.md`.

Main entry points: [`make-appimage.sh`](https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/make-appimage.sh) (AppImage assembly), [`get-dependencies.sh`](https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/get-dependencies.sh) (Dependency acquisition), [`.github/workflows/appimage.yml`](https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/.github/workflows/appimage.yml) (Stable build), [`.github/workflows/appimage-nightly.yml`](https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/.github/workflows/appimage-nightly.yml) (Nightly build)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_local["Local packaging"]
  node_version["Release version<br/>version input"]
  node_dependencies["Dependency acquisition<br/>shell script"]
  node_packager["AppImage assembly<br/>shell script<br/>[make-appimage.sh]"]
  node_artifact["Portable FEX AppImage<br/>release artifact"]
  node_updater["Built-in updater<br/>artifact runtime"]
end

subgraph group_automation["CI and release"]
  node_stable_ci["Stable build<br/>GitHub Actions workflow<br/>[appimage.yml]"]
  node_nightly_ci["Nightly build<br/>GitHub Actions workflow"]
  node_releases[("GitHub Releases<br/>artifact publication")]
  node_bug_reports["Bug report intake<br/>issue template<br/>[report-bug.md]"]
end

subgraph group_external["External dependencies"]
  node_fex["Upstream FEX-Emu<br/>upstream application"]
  node_libraries["Runtime libraries<br/>upstream dependencies"]
  node_sharun["Sharun<br/>packaging tool"]
  node_quick_sharun["Quick-Sharun<br/>packaging wrapper"]
  node_uruntime["uruntime<br/>portable runtime"]
  node_appimage_managers["AppImage managers<br/>external update manager"]
end

node_fex -->|"retrieve"| node_dependencies
node_libraries -->|"retrieve"| node_dependencies
node_dependencies -->|"provides payload"| node_packager
node_version -->|"version"| node_packager
node_sharun -->|"builds with"| node_packager
node_quick_sharun -->|"wraps"| node_packager
node_uruntime -->|"bundles runtime"| node_packager
node_packager -->|"produces"| node_artifact
node_artifact -->|"includes"| node_updater
node_appimage_managers -.->|"disables when detected"| node_updater
node_stable_ci -->|"runs"| node_dependencies
node_stable_ci -->|"runs"| node_packager
node_nightly_ci -->|"runs"| node_dependencies
node_nightly_ci -->|"runs"| node_packager
node_stable_ci -->|"publishes stable"| node_releases
node_nightly_ci -->|"publishes nightly"| node_releases
node_releases -->|"distributes"| node_artifact

click node_version "https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/LATEST_VERSION"
click node_dependencies "https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/get-dependencies.sh"
click node_packager "https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/make-appimage.sh"
click node_stable_ci "https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/.github/workflows/appimage.yml"
click node_nightly_ci "https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/.github/workflows/appimage-nightly.yml"
click node_bug_reports "https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/.github/ISSUE_TEMPLATE/report-bug.md"

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_version,node_dependencies,node_packager,node_artifact,node_updater toneBlue
class node_stable_ci,node_nightly_ci,node_releases,node_bug_reports toneAmber
class node_fex,node_libraries,node_sharun,node_quick_sharun,node_uruntime,node_appimage_managers toneMint
```

## Components

### Local packaging

- [Release version](https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/LATEST_VERSION): version input · `LATEST_VERSION`
- [Dependency acquisition](https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/get-dependencies.sh): shell script · `get-dependencies.sh`
- [AppImage assembly](https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/make-appimage.sh): shell script · Packages the FEX payload and bundled dependencies. · `make-appimage.sh`
- **Portable FEX AppImage**: release artifact · Runs without FUSE through uruntime.
- **Built-in updater**: artifact runtime · Defers updates when an AppImage manager is detected.

### CI and release

- [Stable build](https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/.github/workflows/appimage.yml): GitHub Actions workflow · `.github/workflows/appimage.yml`
- [Nightly build](https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/.github/workflows/appimage-nightly.yml): GitHub Actions workflow · `.github/workflows/appimage-nightly.yml`
- **GitHub Releases**: artifact publication
- [Bug report intake](https://github.com/pkgforge-dev/fex-emu-appimage/blob/main/.github/ISSUE_TEMPLATE/report-bug.md): issue template · `.github/ISSUE_TEMPLATE/report-bug.md`

### External dependencies

- **Upstream FEX-Emu**: upstream application · Emulator payload packaged by this repository.
- **Runtime libraries**: upstream dependencies · Libraries bundled for broad Linux compatibility.
- **Sharun**: packaging tool
- **Quick-Sharun**: packaging wrapper
- **uruntime**: portable runtime · Enables AppImage execution without FUSE.
- **AppImage managers**: external update manager

## Connections

- Upstream FEX-Emu → Dependency acquisition: retrieve
- Runtime libraries → Dependency acquisition: retrieve
- Dependency acquisition → AppImage assembly: provides payload
- Release version → AppImage assembly: version
- Sharun → AppImage assembly: builds with
- Quick-Sharun → AppImage assembly: wraps
- uruntime → AppImage assembly: bundles runtime
- AppImage assembly → Portable FEX AppImage: produces
- Portable FEX AppImage → Built-in updater: includes
- AppImage managers → Built-in updater: disables when detected
- Stable build → Dependency acquisition: runs
- Stable build → AppImage assembly: runs
- Nightly build → Dependency acquisition: runs
- Nightly build → AppImage assembly: runs
- Stable build → GitHub Releases: publishes stable
- Nightly build → GitHub Releases: publishes nightly
- GitHub Releases → Portable FEX AppImage: distributes
