gamectl 1.2.0__tar.gz → 1.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ include README.md
2
+ include LICENSE
3
+ include src/gamectl_runner/bin/gamectl
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gamectl
3
- Version: 1.2.0
3
+ Version: 1.5.0
4
4
  Summary: Sovereign TUI Game Manager & Launcher for Linux & Steam Deck Power Users
5
5
  Author-email: zyekhabdul <zyekhabdulqadirjailani@gmail.com>
6
6
  License-Expression: MIT
@@ -36,13 +36,10 @@ Dynamic: license-file
36
36
 
37
37
  ### Sovereign TUI Game Manager & Launcher for Linux Purists
38
38
 
39
- *Zero Electron. Zero Chromium. Zero Bloat. Sub-80ms Startup.*
39
+ *A lightweight, standalone Steam replacement designed for long-term maintenance.*
40
40
 
41
41
  [![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20SteamDeck-blue?style=for-the-badge&logo=linux&logoColor=white)](https://github.com/zyekhabdul/gamectl)
42
42
  [![Shell](https://img.shields.io/badge/Shell-POSIX%20Bash-4EAA25?style=for-the-badge&logo=gnu-bash&logoColor=white)](https://github.com/zyekhabdul/gamectl)
43
- [![Memory](https://img.shields.io/badge/Memory-<%2015%20MB%20RSS-brightgreen?style=for-the-badge&logo=speedtest&logoColor=white)](https://github.com/zyekhabdul/gamectl)
44
- [![Startup](https://img.shields.io/badge/Startup-<%2080ms-success?style=for-the-badge&logo=lightning&logoColor=white)](https://github.com/zyekhabdul/gamectl)
45
- [![Tests](https://img.shields.io/badge/Tests-59%2F59%20Passing-success?style=for-the-badge&logo=checkmarx&logoColor=white)](https://github.com/zyekhabdul/gamectl)
46
43
  [![PyPI](https://img.shields.io/badge/PyPI-gamectl-3775A9?style=for-the-badge&logo=pypi&logoColor=white)](https://pypi.org/project/gamectl/)
47
44
  [![License](https://img.shields.io/badge/License-MIT-purple?style=for-the-badge)](LICENSE)
48
45
  [![Display](https://img.shields.io/badge/Compositor-Wayland%20%7C%20X11-orange?style=for-the-badge&logo=wayland&logoColor=white)](https://github.com/zyekhabdul/gamectl)
@@ -53,7 +50,7 @@ Dynamic: license-file
53
50
  curl -fsSL https://raw.githubusercontent.com/zyekhabdul/gamectl/main/install.sh | bash
54
51
  ```
55
52
 
56
- [Quickstart](#quick-installation) • [Benchmark](#benchmark-matrix-headless-sovereign-vs-gui-launchers) • [Core Capabilities](#core-capabilities) • [Keyboard Shortcuts](#keyboard-shortcuts-reference) • [CLI Reference](#cli-command-reference) • [Ecosystems](#supported-ecosystems--handhelds) • [Architecture](docs/ARCHITECTURE.md)
53
+ [Quickstart](#quick-installation) • [Project purpose](docs/SOVEREIGN_ORIGINAL_PURPOSE.md) • [Core Capabilities](#core-capabilities) • [Keyboard Shortcuts](#keyboard-shortcuts-reference) • [CLI Reference](#cli-command-reference) • [Ecosystems](#supported-ecosystems--handhelds) • [Architecture](docs/ARCHITECTURE.md)
57
54
 
58
55
  </div>
59
56
 
@@ -73,27 +70,15 @@ curl -fsSL https://raw.githubusercontent.com/zyekhabdul/gamectl/main/install.sh
73
70
  ╰──────────────────────────────────────────────┴───────────────────────────────────────────────────╯
74
71
  ```
75
72
 
76
- **gamectl** is an ultra-lightweight (< 15 MB RAM RSS), high-performance Terminal User Interface (TUI) game manager and launcher designed for Linux workstations and handhelds. It manages, launches, and synchronizes standalone portable games with zero dependency on heavyweight graphical client runtimes (such as Electron, Chromium, or CEF).
73
+ **gamectl** is a Steam replacement for managing, downloading, and launching supported games. Its goals are low resource use, standalone operation, and long-term stability. The core workflow does not require Steam Client or SLSsteam.
77
74
 
78
- Engineered for Linux purists and minimalist desktop environments (Wayland / Niri / Sway / Hyprland / X11), `gamectl` delivers instant sub-80ms startup, isolated runtime prefixes, decentralized LAN multiplayer, and disaster-proof savegame snapshotting.
75
+ It uses a native CLI/TUI, isolated runtime prefixes, local multiplayer configuration, and savegame snapshots. Follow [the project purpose](docs/SOVEREIGN_ORIGINAL_PURPOSE.md) when changing code or agent memory; legacy Steam bridge commands are not an implementation target or a fix for standalone failures.
79
76
 
80
77
  ---
81
78
 
82
- ## Benchmark Matrix: Headless Sovereign vs GUI Launchers
79
+ ## Performance and Verification
83
80
 
84
- Empirical comparisons measured on Arch Linux x86_64 (Linux kernel 6.x, AMD Ryzen / Intel Core, NVMe storage):
85
-
86
- | Metric / Dimension | `gamectl` (TUI) | Heroic Games Launcher | Lutris | Bottles |
87
- | :--- | :--- | :--- | :--- | :--- |
88
- | **Startup Latency** | **< 80 ms** | ~1,200 - 2,500 ms | ~2,200 - 3,500 ms | ~3,100 - 4,800 ms |
89
- | **Idle Memory (RSS)** | **< 15 MB** | ~180 - 380 MB | ~120 - 240 MB | ~200 - 420 MB |
90
- | **Runtime Stack** | **POSIX Bash + fzf + jq** | Electron + Chromium + Node | Python 3 + GTK 3/4 | Python 3 + GTK 4 + libadwaita |
91
- | **Prefix Architecture** | **Per-game isolated (`./pfx`)** | Global / Managed per game | Shared / Centralized | Flatpak / Centralized bottles |
92
- | **Savegame Disaster Guard** | **Automated 3-slot rotation** | Manual / Cloud-dependent | None (Manual sync) | Centralized snapshots |
93
- | **Audio Latency Tuning** | **Automated PipeWire/Pulse** | Manual environment variables | Manual environment variables | Manual environment variables |
94
- | **Wineserver Teardown** | **Deterministic sync & kill** | Prone to orphan daemons | Prone to lingering processes | Handled via Flatpak sandbox |
95
- | **Headless / Remote Ops** | **100% Native CLI & TUI** | No (GUI required) | Partial CLI | No (GUI required) |
96
- | **Asset Overhead** | **Zero bundled web assets** | ~150 - 300 MB disk space | ~80 - 150 MB disk space | ~200 - 400 MB disk space |
81
+ Low memory use and fast startup are design goals. Publish measured values only with the command, environment, revision, and scope that produced them. Passing local tests does not prove compatibility with every game or long-term runtime stability.
97
82
 
98
83
  ---
99
84
 
@@ -114,20 +99,21 @@ Empirical comparisons measured on Arch Linux x86_64 (Linux kernel 6.x, AMD Ryzen
114
99
 
115
100
  ## Core Capabilities
116
101
 
117
- - **Zero-Bloat & Instant Startup**: Written in pure POSIX Bash, `fzf`, and `jq`. Cuts 95%+ memory overhead compared to conventional graphical game launchers.
118
- - **Dynamic Multi-Library Autodetection**: Automatically scans and aggregates games across all Steam library partitions (`libraryfolders.vdf` + ACF manifests), portable directories (`~/Games/`), Lutris paths, and custom locations via `~/.config/gamectl/libraries` or `GAMECTL_LIBRARY_DIRS`.
119
- - **Split-Pane Live Inspection Cockpit**: Left pane lists your library with ANSI status badges; right pane streams real-time binary architectures (ELF 32/64-bit, PE32/PE32+), runner paths, wrapper profiles, LAN multiplayer personas, and savegame sizes.
102
+ - **Small Native Runtime**: Bash, `fzf`, `jq`, and a native Rust downloader; no embedded browser runtime.
103
+ - **Dynamic Multi-Library & Multi-Store Discovery**: Automatically scans Steam (`libraryfolders.vdf` + ACF), optional GOG (`gogdl`/`lgogdownloader`), Epic (`legendary`), Amazon (`nile`), Lutris, and standalone directories (`~/Games/`, `~/.config/gamectl/libraries`, `GAMECTL_LIBRARY_DIRS`) without duplicate entries.
104
+ - **Split-Pane Live Inspection & Event-Driven Exit Sync**: Left pane lists your library with ANSI status badges (`[RUNNING]`, `[CRASHED]`, `[EXITED]`); `fzf --listen` refreshes automatically when a game exits, surfaces missing ELF shared libraries and crash hints, and guards against stale selections.
105
+ - **Standalone Steam Runtime (Scout) & Native Fallback (`gamectl setup-runtime`)**: Provisions Valve's Steam Runtime into `~/.local/share/gamectl/runtime/steam-runtime` with SHA-256 verification and tar traversal/link checks. Native Linux launches prioritize the standalone runtime before Steam installs (opt out with `native_runtime=host` or `GAMECTL_NATIVE_RUNTIME=host`).
120
106
  - **cgroups v2 Process Tree Isolation (`gamectl launch --scope`)**: Encapsulates game execution in a dedicated systemd user scope (`gamectl-<title>-<pid>`), terminating all background helpers (`winedevice.exe`, `explorer.exe`, crash reporters) atomically on exit with zero zombie processes.
121
107
  - **Automated PRIME Hybrid dGPU Offload (`gamectl launch --prime`)**: Auto-probes `/sys/bus/pci/devices/` and routes rendering to secondary discrete NVIDIA (`__NV_PRIME_RENDER_OFFLOAD=1`), AMD, or Intel Arc (`DRI_PRIME=1`) controllers without manual environment variable hacking.
122
108
  - **Rootless Bubblewrap Security Sandbox (`gamectl launch --sandbox`)**: Mounts host root as read-only and shields private directories (`~/.ssh`, `~/.gnupg`, browser cookies, and `.env` credentials) inside a hardened tmpfs namespace while transparently passing Wayland/X11 and PipeWire audio sockets.
123
109
  - **Disaster-Proof Savegame Snapshots**: Automatically creates a 3-slot rotating backup (`slot1`, `slot2`, `slot3`) before each game launch, safeguarding your save states against crashes and dirty shutdowns.
124
- - **Decentralized LAN Steam Emulator (`gamectl inject`)**: Converts Valve binaries (Linux native `.so` and Windows `.dll` x86/x64) into portable standalone runtimes featuring local `./saves` redirection and automated `steam_settings/DLC.txt` generation.
110
+ - **Decentralized LAN Steam Emulator (`gamectl inject`, `gamectl setup-gbe`)**: Auto-provisions GBE Fork templates, generates `steam_settings/steam_interfaces.txt` from original Steamworks binaries, redirects saves to `./saves`, generates `steam_settings/DLC.txt`, and guards against unshielded Steamworks or SteamStub binaries (`detect-steamstub` / `unpack-stub`).
125
111
  - **Isolated Windows Runner & Prefix Engine**: Discovers installed Windows compatibility runners (`umu-run` -> `GE-Proton` / Steam `Proton` -> `wine`) and maintains strictly isolated prefixes in `$GAME_DIR/pfx`, keeping host `~/.wine` pristine.
126
112
  - **Modular Performance Wrappers**: On-the-fly toggle for `gamemoderun`, `mangohud`, `gamescope` dynamic FSR upscaling, and Mesa multithreaded GL via interactive dialogs (`<Ctrl-O>`) or CLI flags.
127
113
  - **LAN Multi-Identity & SteamID Manager (`gamectl set-id`)**: Generates deterministic 17-digit SteamID64 tokens and distinct LAN gamer tags to prevent co-op network collisions, with custom peer discovery (`custom_broadcasts.txt`).
128
- - **Headless Asset Downloader Engine (`gamectl download`)**: Downloads game files directly from content servers via DepotDownloader CLI in foreground or detached background modes without requiring a GUI client.
129
- - **Steam Entitlement & ACF Adoption Engine (`gamectl entitle`, `gamectl adopt-steam`)**: Adopts local/offline files into the official Steam client, unlocking community Steam Input mappings (gyro/touchpad), Valve CDN Vulkan shader pre-caching, and base-game DLC activation via `~/.config/SLSsteam/config.yaml` and native `appmanifest_<appid>.acf`. (Backward-compatible alias: `gamectl unlock`).
130
- - **Universal Mod DLL Overrides & P2P Hook Engine (`gamectl mod-overrides`)**: Detects mod loaders and P2P compatibility layers (BepInEx, UE4SS, REFramework, ReShade, OnlineFix), injects deduplicated `WINEDLLOVERRIDES`, and registers Spacewar AppID 480.
114
+ - **Standalone CDN Downloader (`gamectl download`)**: Uses manifest providers and native Rust streaming (`gamectl-depot-dl`) without requiring Steam Client, enforcing an engine-level DLC guard (`--allow-dlc` to opt in). Missing manifests, keys, or failed provisioning produce errors instead of switching clients.
115
+ - **Optional Multi-Store Adapters & Unified Auth Hub (`gamectl auth`, `gamectl search-stores`)**: Integrates optional GOG (`gogdl`/`lgogdownloader`), Epic (`legendary`), and Amazon (`nile`) CLIs alongside Steam/Standalone, with offline-safe session checks and cross-store search (`GAME`/`DLC`/`DEMO`/`MOD`/`SOUNDTRACK`/`TOOL`/`APP`).
116
+ - **Mod DLL Overrides & Local P2P Configuration (`gamectl mod-overrides`)**: Detects mod loaders and local compatibility files and prepares `WINEDLLOVERRIDES` without registering Steam entitlements.
131
117
  - **Headless GE-Proton Release Manager (`gamectl proton-*`)**: Fetches upstream GitHub releases, streams tarball installation directly into `~/.local/share/Steam/compatibilitytools.d/`, and prunes older versions safely.
132
118
  - **Wine Prefix Swiss Army Knife (`gamectl pfx`) & Wineserver Guard**: Dedicated maintenance toolkit (`winecfg`, `regedit`, `cmd`, `shell`, `winetricks`, `kill`, `clean`) with deterministic wineserver teardown (`wineserver -w` / `-k`) to eliminate registry lock contention.
133
119
  - **Real-Time PipeWire Audio Scheduling**: Exports optimal quantum buffer configurations (`PIPEWIRE_LATENCY="256/48000"`, `PULSE_LATENCY_MSEC=60`) to prevent audio crackling and buffer starvation during high CPU spikes.
@@ -142,14 +128,16 @@ The interactive TUI library navigation provides instantaneous single-keystroke o
142
128
 
143
129
  | Shortcut | Action Description |
144
130
  | :--- | :--- |
145
- | `<ENTER>` | Launch Game (Automatic save snapshot + runner resolution + wrappers) |
131
+ | `<ENTER>` | Launch Game (or open Running Process Controller if `[RUNNING]`) |
132
+ | `<Tab>` | Cycle Store Filter (`ALL -> STEAM -> GOG -> EPIC -> AMAZON -> STANDALONE`) |
133
+ | `<Alt-S>` | Open Store Filter Picker (Library) / Switch to Cross-Store Search (Search) |
146
134
  | `<Ctrl-O>` | Configure Runtime Wrappers (GameMode / MangoHud / Gamescope FSR / Mesa GL) |
147
- | `<Ctrl-P>` | Configure LAN Multiplayer Gamer Tag & SteamID64 Persona |
148
- | `<Ctrl-I>` | Inject Decentralized LAN Runtime & Entitlement Sync |
149
- | `<Ctrl-S>` | Sync Portable Savegame to Remote Companion Host via SSH |
150
- | `<Ctrl-B>` | Create Manual Savegame Snapshot Slot |
151
- | `<Ctrl-F>` | Search Steam Store Catalog & Audit ProtonDB Rating |
152
- | `<Ctrl-D>` | Open Background Download Monitor |
135
+ | `<Ctrl-P>` | Configure LAN Multiplayer Gamer Tag & SteamID64 Persona (Process HUD on Dashboard) |
136
+ | `<Ctrl-I>` | Inject Decentralized LAN Runtime & Portable Saves |
137
+ | `<Ctrl-S>` | Sync Portable Savegame to Remote Companion Host via SSH / Rclone |
138
+ | `<Ctrl-B>` / `<Ctrl-R>` | Create Manual Save Snapshot (`Ctrl-B`) / Restore Snapshot Slot (`Ctrl-R`) |
139
+ | `<Ctrl-F>` / `<Ctrl-X>` | Search Steam Store & ProtonDB (`Ctrl-F`) / Community Fixes (`Ctrl-X`) |
140
+ | `<Ctrl-D>` / `<Ctrl-L>` | Create Desktop Entry (`Ctrl-D`) / View Activity Logs (`Ctrl-L`) |
153
141
  | `<ESC>` / `<Ctrl-C>` | Return to Master Dashboard Hub / Exit |
154
142
 
155
143
  ---
@@ -173,7 +161,7 @@ paru -S gamectl-git
173
161
  ```bash
174
162
  # Build and install Debian package:
175
163
  make pkg-deb
176
- sudo dpkg -i packaging/debian/gamectl_1.2.0_all.deb
164
+ sudo dpkg -i packaging/debian/gamectl_1.5.0_amd64.deb
177
165
  sudo apt install -f
178
166
  ```
179
167
 
@@ -213,7 +201,7 @@ The turnkey installer automatically executes:
213
201
  2. Scaffolds configuration directory and templates in `~/.config/gamectl/`.
214
202
  3. Installs shell completion script to `~/.local/share/bash-completion/completions/gamectl`.
215
203
  4. Registers FreeDesktop entry `gamectl.desktop` for Wayland/X11 application launchers (rofi, fuzzel, wofi, dmenu).
216
- 5. Verifies runtime availability of headless tools (DepotDownloader, compatibility templates).
204
+ 5. Verifies runtime availability of manifest harvesting tools (curl, jq, zip, unzip) and compatibility templates.
217
205
 
218
206
  ---
219
207
 
@@ -226,7 +214,8 @@ The turnkey installer automatically executes:
226
214
  gamectl # Launch Master Dashboard Hub TUI
227
215
  gamectl library # Open Game Library TUI directly (alias: list-ui)
228
216
  gamectl config # Open global configuration editor (alias: configure)
229
- gamectl doctor # Run 7-layer system & GPU health diagnostics (alias: audit)
217
+ gamectl doctor # Run 8-layer system & GPU health diagnostics (alias: audit)
218
+ gamectl logs # View centralized runtime activity logs
230
219
  ```
231
220
 
232
221
  ### 2. Launching Games
@@ -264,13 +253,20 @@ gamectl check-sandbox
264
253
 
265
254
  ### 4. P2P Multiplayer Compatibility & Mod DLL Overrides
266
255
  ```bash
267
- # Setup P2P compatibility layer, DLL overrides, and Spacewar AppID 480:
256
+ # Setup local P2P compatibility and DLL overrides without Steam registration:
268
257
  gamectl mod-overrides "$HOME/Games/CoopGame"
269
258
 
270
259
  # Backward-compatible command alias:
271
260
  gamectl onlinefix "$HOME/Games/CoopGame"
261
+
262
+ # Optional Steam Client bridge, only when deliberately requested:
263
+ gamectl sync-steam 480 Spacewar "$HOME/Games/CoopGame"
272
264
  ```
273
265
 
266
+ `gamectl inject <dir> [appid]` prepares the offline runtime without syncing Steam.
267
+ Use `gamectl inject <dir> <appid> --all` to explicitly request Steam synchronization.
268
+ Injection and standalone provisioning return an error when a required template or file operation fails.
269
+
274
270
  ### 5. GE-Proton Release Manager
275
271
  ```bash
276
272
  # Query installed local releases vs latest upstream releases on GitHub:
@@ -305,9 +301,17 @@ gamectl pfx "$HOME/Games/MyGame" clean -y
305
301
 
306
302
  ### 7. Decentralized LAN Steam Runtime & Portable Saves
307
303
  ```bash
308
- # Inject standalone LAN runtime and sync offline entitlement (All-in-One):
304
+ # Prepare the standalone LAN runtime and portable saves without Steam sync:
309
305
  gamectl inject "$HOME/Games/Limbo" 48000
310
306
 
307
+ # Provision Goldberg templates and standalone Steam Runtime (Scout):
308
+ gamectl setup-gbe
309
+ gamectl setup-runtime
310
+
311
+ # Inspect or unpack SteamStub DRM binaries (Windows PE & Linux ELF .bind):
312
+ gamectl detect-steamstub "$HOME/Games/MyGame/game.bin"
313
+ gamectl unpack-stub "$HOME/Games/MyGame/game.bin"
314
+
311
315
  # Inject standalone LAN runtime only (zero Steam client sync):
312
316
  gamectl inject "$HOME/Games/Limbo" 48000 --no-sync
313
317
 
@@ -319,9 +323,12 @@ gamectl set-id "MyGamerTag" auto --global
319
323
 
320
324
  ### 8. Headless Asset Downloader Engine
321
325
  ```bash
322
- # Download game files, inject decentralized runtime, and sync entitlement:
326
+ # Download supported game files and prepare the standalone runtime:
323
327
  gamectl download 48000 "$HOME/Games/Limbo" "LIMBO"
324
328
 
329
+ # Allow downloading a DLC AppID explicitly (otherwise blocked with base-game hint):
330
+ gamectl download 123456 "$HOME/Games/MyGame" --allow-dlc
331
+
325
332
  # Download game assets only without injection:
326
333
  gamectl download 48000 "$HOME/Games/Limbo" "LIMBO" --raw
327
334
 
@@ -330,10 +337,33 @@ gamectl download 48000 "$HOME/Games/Limbo" "LIMBO" -f
330
337
 
331
338
  # Monitor active and completed download tasks:
332
339
  gamectl downloads
340
+ gamectl download-status
341
+ ```
342
+
343
+ ### 8a. Multi-Store Adapters, Unified Auth & Cross-Store Search
344
+ ```bash
345
+ # Inspect registered stores (steam, gog, epic, amazon) and offline auth state:
346
+ gamectl stores status
347
+ gamectl auth status
348
+
349
+ # Delegate authentication to native optional store CLIs or LuaTools:
350
+ gamectl auth gog # or: gamectl gog auth
351
+ gamectl auth epic # or: gamectl epic auth
352
+ gamectl auth amazon # or: gamectl amazon auth
353
+ gamectl auth luatools <code|token|session.json>
354
+
355
+ # Search across all available stores (or filter to one store):
356
+ gamectl search-stores "Hollow Knight"
357
+ gamectl search-stores "Cyberpunk" --store gog
358
+
359
+ # Store-specific CLI commands (optional CLIs: gogdl/lgogdownloader, legendary, nile):
360
+ gamectl gog <status|auth|search|download|sync>
361
+ gamectl epic <status|auth|search|download|sync|launch>
362
+ gamectl amazon <status|auth|search|download|sync>
333
363
  ```
334
364
 
335
- ### 9. Steam Entitlement & ACF Adoption Engine (Zero-Download Full DLC)
336
- Adopts offline or standalone game files into the official Steam client, enabling community Steam Input (gyro/trackpad profiles), Valve CDN Vulkan shader pre-caching, and full DLC entitlement without re-downloading:
365
+ ### 9. Legacy Steam Bridge Commands (Explicit Opt-In)
366
+ These compatibility commands target an external Steam Client. They are outside the standalone workflow, are not required for gamectl readiness, and must not be used as a recovery fallback or as a reason to install Steam/SLSsteam:
337
367
 
338
368
  ```bash
339
369
  # Entitle AppID, adopt local assets, and register full DLC into Steam:
@@ -355,13 +385,36 @@ gamectl protondb "$HOME/Games/Terraria"
355
385
  gamectl make-desktop "$HOME/Games/Terraria" "Terraria"
356
386
  ```
357
387
 
358
- ### 11. Multi-Node Savegame Synchronization
388
+ ### 11. Automated Game Fixes & Steam Lifecycle Engine
389
+ Directly queries community bypasses and Online-Fixes from LuaTools API & Cloudflare R2, extracts them with zip-slip safety audits, creates atomic rollback snapshots, and hooks Spacewar 480 automatically:
390
+
391
+ ```bash
392
+ # Query available community fixes & Online-Fix bypasses (Public, zero auth required):
393
+ gamectl fix-check 470220
394
+
395
+ # Download, verify, backup, and deploy Online-Fix directly to game directory:
396
+ gamectl fix-install 470220 "$HOME/Games/UNO" --type online --yes
397
+
398
+ # Auto-resolve game directory from Steam libraries and restart Steam client:
399
+ gamectl fix-install 470220 --restart
400
+
401
+ # Revert deployed game fix and restore original pristine vanilla files:
402
+ gamectl fix-revert "$HOME/Games/UNO"
403
+
404
+ # Gracefully hot-reload running Steam client (Steam Deck Game Mode & Client Bridge):
405
+ gamectl restart-steam
406
+ ```
407
+
408
+ ### 12. Multi-Node Savegame Synchronization
359
409
  ```bash
360
410
  # Synchronize local savegame snapshots to configured remote companion host:
361
411
  gamectl --sync "$HOME/Games/Terraria" "Terraria"
412
+ gamectl sync-pull "$HOME/Games/Terraria" "Terraria"
362
413
 
363
- # Create immediate manual save snapshot:
414
+ # Create or restore savegame snapshot slots (1-3) and inspect Wine prefix saves:
364
415
  gamectl --backup "$HOME/Games/Terraria"
416
+ gamectl restore "$HOME/Games/Terraria" 1
417
+ gamectl scan-saves "$HOME/Games/WindowsGame"
365
418
  ```
366
419
 
367
420
  ---
@@ -377,7 +430,9 @@ gamectl --backup "$HOME/Games/Terraria"
377
430
  | `~/.config/gamectl/remote_host` | Hostname or IP of companion remote sync node (`user@hostname`). |
378
431
  | `~/.config/gamectl/persona` | Global default player gamer tag and SteamID64. |
379
432
  | `GAMECTL_LIBRARY_DIRS` | Environment variable to inject extra library search paths dynamically. |
380
- | `XDG_RUNTIME_DIR/gamectl-$UID/` | Ephemeral runtime directory for active game tracking and locks. |
433
+ | `GAMECTL_RUNTIME_DIR` | Override standalone Steam Runtime directory (default `~/.local/share/gamectl/runtime/steam-runtime`). |
434
+ | `GAMECTL_NATIVE_RUNTIME` | Set to `host` / `off` to bypass Steam Runtime wrapper for native Linux games. |
435
+ | `XDG_RUNTIME_DIR/gamectl-$UID/` | Ephemeral runtime directory for active game tracking, exit events, and locks. |
381
436
 
382
437
  ---
383
438
 
@@ -389,20 +444,24 @@ gamectl/
389
444
  │ └── gamectl # Monolithic standalone compiled executable (source-to-bundle)
390
445
  ├── completions/
391
446
  │ └── gamectl.bash # Shell autocompletion script (Bash / Zsh)
447
+ ├── crates/depot-dl/ # Native Rust Valve CDN downloader (gamectl-depot-dl)
392
448
  ├── docs/
393
449
  │ ├── ARCHITECTURE.md # Deep dive into headless Linux game management architecture
394
450
  │ └── GUIDE.md # Operational handbook, prefix isolation, and disaster recovery
395
451
  ├── packaging/
396
- │ └── arch/ # Arch Linux PKGBUILD packaging recipes
452
+ │ ├── arch/ # Arch Linux PKGBUILD & AUR recipes
453
+ │ └── debian/ # Debian .deb packaging script
397
454
  ├── scripts/
398
455
  │ ├── build.sh # Source-to-bundle deterministic compilation script
399
- │ └── format.sh # Shell formatting and lint harness
456
+ │ ├── build-depot-dl.sh # Native Rust Steam CDN depot downloader compiler
457
+ │ └── check_loc_budget.sh # Module LOC budget & legacy ratchet guard
400
458
  ├── src/
401
- │ ├── core/ # Header constants, ANSI palette, snapshot engine, utils
402
- │ ├── diagnostics/ # 7-layer system health audit and ProtonDB client
403
- │ ├── runners/ # Windows runners, prefix manager, DLL overrides, launcher HUD
404
- │ ├── steam/ # Multi-path discovery, identity, and headless downloader
405
- │ ├── tui/ # Master dashboard hub, preview cards, interactive search
459
+ │ ├── core/ # Constants, utils, TUI primitives, saves, SteamStub, process runtime
460
+ │ ├── diagnostics/ # 8-layer system health audit and ProtonDB client
461
+ │ ├── runners/ # Wrappers, Proton/Wine prefix & runtime provisioners, launcher, sync, GBE
462
+ │ ├── steam/ # Multi-path discovery, identity, CDN downloader, manifests, fixes
463
+ │ ├── stores/ # Store interface registry & Steam/GOG/Epic/Amazon adapters
464
+ │ ├── tui/ # Master dashboard hub, preview cards, multi-store & Steam search
406
465
  │ └── main.sh # Subshell exports and CLI command dispatcher
407
466
  ├── tests/
408
467
  │ └── test_cli.sh # Comprehensive regression & integrity harness (50+ tests)
@@ -426,6 +485,8 @@ If `gamectl` freed your RAM, eliminated background browser bloat, or improved yo
426
485
 
427
486
  ## License & Legal Notice
428
487
 
429
- Distributed under the MIT License. See `LICENSE` for details.
488
+ `gamectl` (Bash TUI/CLI, runtime wrappers, and packaging scripts) is distributed under the **MIT License**. See [LICENSE](LICENSE) for details.
489
+
490
+ The companion native Rust depot downloader binary `gamectl-depot-dl` ([crates/depot-dl/](crates/depot-dl/)) is derived from `steam-depot-downloader-mod` and distributed separately under **GPL-2.0-only** (see [crates/depot-dl/Cargo.toml](crates/depot-dl/Cargo.toml)).
430
491
 
431
492
  `gamectl` is an independent open-source utility designed for managing standalone local game files and compatibility runners on Linux. It does not distribute, host, or bypass proprietary encryption on copyrighted game software. All trademarks and brand names belong to their respective owners.