# nuzair46/blockthespot-installer architecture

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

- Interactive diagram: https://gitdiagram.com/nuzair46/blockthespot-installer
- Repository: https://github.com/nuzair46/blockthespot-installer

## Overview

This is a Windows x64 desktop installer for BlockTheSpot. The user selects a compatible Spotify version and installs or patches Spotify, or uninstalls the patch and restores the original DLL. The Windows entry point owns the install/uninstall workflow; supporting modules resolve versions and releases, download and validate files, preserve settings, and apply or roll back file changes. The graph combines sampled call sites with README-documented behavior; links for unsampled implementation details cite the README rather than implying source inspection.

Main entry points: [`main_windows.go`](https://github.com/nuzair46/blockthespot-installer/blob/main/main_windows.go) (Install workflow), [`spotify_versions.go`](https://github.com/nuzair46/blockthespot-installer/blob/main/spotify_versions.go) (Version catalog), [`patch_release.go`](https://github.com/nuzair46/blockthespot-installer/blob/main/patch_release.go) (Patch release), [`spotify_download.go`](https://github.com/nuzair46/blockthespot-installer/blob/main/spotify_download.go) (Spotify download)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Installer app"]
  node_ui["Desktop UI<br/>[main_windows.go]"]
  node_workflow["Install workflow<br/>[main_windows.go]"]
end

subgraph group_release["Release and versions"]
  node_catalog["Version catalog"]
  node_patchrelease["Patch release<br/>[patch_release.go]"]
end

subgraph group_install["Spotify installation"]
  node_download["Spotify download"]
  node_compatibility["Windows compatibility"]
end

subgraph group_files["Settings and files"]
  node_settings["Settings preservation<br/>[settings.go]"]
  node_fileops["Patch file operations<br/>[install_files.go]"]
end

node_user(("Installer user"))
node_loadspot["Loadspot catalog"]
node_github["GitHub release"]
node_spotify["Spotify installation"]
node_installed[("Installed Spotify files")]
node_windows["Windows system"]

node_user -->|"selects action"| node_ui
node_ui -->|"starts operation"| node_workflow
node_workflow -->|"loads choices"| node_catalog
node_catalog -->|"reads catalog"| node_loadspot
node_workflow -->|"loads patch"| node_patchrelease
node_patchrelease -->|"downloads assets"| node_github
node_workflow -->|"downloads installer"| node_download
node_workflow -->|"checks DLLs"| node_compatibility
node_workflow -->|"runs setup"| node_spotify
node_workflow -->|"preserves preferences"| node_settings
node_workflow -->|"installs or restores"| node_fileops
node_settings -->|"reads and writes"| node_installed
node_fileops -->|"replaces files"| node_installed
node_spotify -->|"updates directory"| node_installed
node_workflow -->|"closes and launches"| node_windows
node_download -->|"uses selected URL"| node_loadspot

click node_ui "https://github.com/nuzair46/blockthespot-installer/blob/main/main_windows.go"
click node_workflow "https://github.com/nuzair46/blockthespot-installer/blob/main/main_windows.go"
click node_catalog "https://github.com/nuzair46/blockthespot-installer/blob/main/spotify_versions.go"
click node_patchrelease "https://github.com/nuzair46/blockthespot-installer/blob/main/patch_release.go"
click node_download "https://github.com/nuzair46/blockthespot-installer/blob/main/spotify_download.go"
click node_compatibility "https://github.com/nuzair46/blockthespot-installer/blob/main/compatibility_windows.go"
click node_settings "https://github.com/nuzair46/blockthespot-installer/blob/main/settings.go"
click node_fileops "https://github.com/nuzair46/blockthespot-installer/blob/main/install_files.go"

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_ui,node_workflow,node_user toneBlue
class node_catalog,node_patchrelease,node_installed toneAmber
class node_download,node_compatibility toneMint
class node_settings,node_fileops toneRose
class node_loadspot,node_github,node_spotify,node_windows toneIndigo
```

## Components

### Installer app

- [Desktop UI](https://github.com/nuzair46/blockthespot-installer/blob/main/main_windows.go): `main_windows.go`
- [Install workflow](https://github.com/nuzair46/blockthespot-installer/blob/main/main_windows.go): `main_windows.go`

### Release and versions

- [Version catalog](https://github.com/nuzair46/blockthespot-installer/blob/main/spotify_versions.go): `spotify_versions.go`
- [Patch release](https://github.com/nuzair46/blockthespot-installer/blob/main/patch_release.go): `patch_release.go`

### Spotify installation

- [Spotify download](https://github.com/nuzair46/blockthespot-installer/blob/main/spotify_download.go): `spotify_download.go`
- [Windows compatibility](https://github.com/nuzair46/blockthespot-installer/blob/main/compatibility_windows.go): `compatibility_windows.go`

### Settings and files

- [Settings preservation](https://github.com/nuzair46/blockthespot-installer/blob/main/settings.go): `settings.go`
- [Patch file operations](https://github.com/nuzair46/blockthespot-installer/blob/main/install_files.go): `install_files.go`

### Other components

- **Installer user**
- **Loadspot catalog**
- **GitHub release**
- **Spotify installation**
- **Installed Spotify files**
- **Windows system**

## Connections

- Installer user → Desktop UI: selects action (evidence: `README.md`)
- Desktop UI → Install workflow: starts operation (evidence: `main_windows.go`)
- Install workflow → Version catalog: loads choices (evidence: `README.md`)
- Version catalog → Loadspot catalog: reads catalog (evidence: `README.md`)
- Install workflow → Patch release: loads patch (evidence: `README.md`)
- Patch release → GitHub release: downloads assets (evidence: `patch_release.go`)
- Install workflow → Spotify download: downloads installer (evidence: `main_windows.go`)
- Install workflow → Windows compatibility: checks DLLs (evidence: `README.md`)
- Install workflow → Spotify installation: runs setup (evidence: `main_windows.go`)
- Install workflow → Settings preservation: preserves preferences (evidence: `main_windows.go`)
- Install workflow → Patch file operations: installs or restores (evidence: `main_windows.go`)
- Settings preservation → Installed Spotify files: reads and writes (evidence: `settings.go`)
- Patch file operations → Installed Spotify files: replaces files (evidence: `install_files.go`)
- Spotify installation → Installed Spotify files: updates directory (evidence: `README.md`)
- Install workflow → Windows system: closes and launches (evidence: `README.md`)
- Spotify download → Loadspot catalog: uses selected URL (evidence: `README.md`)
