Skip to content

Installation and Setup

buntatoes edited this page Nov 28, 2026 · 1 revision

Installation and Setup

RubyLock RPC supports Windows (x64) and Linux (x86_64) with prebuilt installers on GitHub Releases as well as running directly from a source checkout.

Prerequisites

Requirement Details
Ruby Ruby 3.2+ (>= 3.2.0 in rubylock-rpc.gemspec, tested on Ruby 3.4 in CI). Zero external gems are required.
Discord Local desktop client running (native Discord on Windows/Linux, Flatpak Discord, Snap Discord, or Vesktop).
Deadlock Installed via Steam (App ID 1422450) and launched with -condebug enabled so game/citadel/console.log is written.

Windows Installation (.exe Installer)

The official Windows release ships as a self-contained installer (RubyLock-RPC-Setup-v1.3.0-win64.exe) compiled from packaging/windows/installer.c with an embedded RLPC resource payload.

Steps

  1. Install Ruby 3.2+ (x64) from RubyInstaller if it is not already installed on PATH or under C:\Ruby*-x64.
  2. Download RubyLock-RPC-Setup-v1.3.0-win64.exe from the Releases page.
  3. Run the installer. It will:
    • Extract rubylock-rpc.exe, bin/rubylock-rpc, lib/, assets/icon.ico, assets/icon.png, LICENSE, and README.md into %LOCALAPPDATA%\RubyLock-RPC.
    • Save a copy of the setup executable as %LOCALAPPDATA%\RubyLock-RPC\RubyLock-RPC-Setup.exe for future uninstallation.
    • Create "RubyLock RPC" shortcuts (RubyLock RPC.lnk) on your Desktop and in your Start Menu pointing to rubylock-rpc.exe.
    • Register an uninstaller entry in HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\RubyLockRpc so RubyLock RPC appears in Windows Installed Apps / Add or Remove Programs.
  4. Double-click the "RubyLock RPC" Desktop shortcut to launch Deadlock with -condebug and Discord Rich Presence.

Note

Windows SmartScreen Warning: Windows may display a "Windows protected your PC" prompt because the executable is unsigned. Click More info -> Run anyway, or verify and build the installer yourself from source (ruby scripts/package.rb --exe).

Silent Install & Uninstallation (Windows)

The Windows installer supports unattended flags:

:: Silent install / in-place upgrade
RubyLock-RPC-Setup-v1.3.0-win64.exe --silent

:: Interactive uninstall
rubylock-rpc --uninstall

:: Silent uninstall
rubylock-rpc --uninstall --silent

Uninstalling deletes the Desktop and Start Menu shortcuts, removes the HKCU\...\Uninstall\RubyLockRpc registry key, and recursively deletes %LOCALAPPDATA%\RubyLock-RPC. You can also uninstall through Windows Settings -> Apps -> Installed Apps.


Linux Installation (.tar.gz Bundle)

The Linux release (rubylock-rpc-linux-x86_64.tar.gz) contains the pure-Ruby source tree, a compiled native ELF wrapper (rubylock-rpc), an XDG desktop entry, icon assets, and install.sh / uninstall.sh scripts.

Interactive (GUI / Terminal) Install

tar -xzf rubylock-rpc-linux-x86_64.tar.gz
cd rubylock-rpc-linux-x86_64
./install.sh

When run inside an X11 ($DISPLAY) or Wayland ($WAYLAND_DISPLAY) desktop session, install.sh automatically uses zenity (GNOME/GTK) or kdialog (KDE) to present a graphical setup dialog — including an Update/Reinstall vs. Uninstall picker if an existing installation is detected. On headless systems or without zenity/kdialog, it falls back cleanly to terminal output.

Installer Options (install.sh & uninstall.sh)

Option Description
--silent, -y, --yes Run non-interactively without GUI or terminal prompts.
--gui Force graphical dialogs (requires zenity or kdialog).
--uninstall (install.sh only) Delegate to uninstall.sh for the target prefix.
--prefix DIR / --prefix=DIR Override installation prefix (default: $PREFIX or $HOME/.local).
-h, --help Show usage help.

Installed File Layout (Linux)

With the default prefix ($HOME/.local):

Path Purpose
$HOME/.local/share/rubylock-rpc/ Application root (bin/, lib/, assets/, uninstall.sh, LICENSE, README.md, and native ELF rubylock-rpc if packaged)
$HOME/.local/bin/rubylock-rpc Symlink to $HOME/.local/share/rubylock-rpc/rubylock-rpc (or bin/rubylock-rpc)
$HOME/.local/share/applications/rubylock-rpc.desktop XDG launcher entry with Categories=Game;Utility; and a right-click Uninstall RubyLock RPC desktop action
$HOME/.local/share/icons/hicolor/256x256/apps/rubylock-rpc.png Application and system tray icon

Tip

GNOME System Tray Support: KDE Plasma supports StatusNotifierItem tray icons out of the box. On GNOME, install and enable the AppIndicator and KStatusNotifierItem Support extension (pre-installed on Ubuntu and Pop!_OS) so the persistent RubyLock RPC icon appears in the top bar.

Note

Ensure $HOME/.local/bin is in your shell $PATH if you want to invoke rubylock-rpc from a terminal or Steam Launch Options without typing the full path.

Uninstalling on Linux

You can uninstall via any of these methods:

  • Run rubylock-rpc --uninstall (add --silent for non-interactive removal).
  • Right-click RubyLock RPC in your application launcher and choose Uninstall RubyLock RPC.
  • Run ./uninstall.sh (or $HOME/.local/share/rubylock-rpc/uninstall.sh).

Running from Source

No build step is required to run RubyLock RPC from a Git clone:

git clone https://github.com/buntatoes/rubylock-rpc.git
cd rubylock-rpc
ruby bin/rubylock-rpc --no-launch

Launching Deadlock with -condebug

Because RubyLock RPC tracks match state by tailing game/citadel/console.log, Deadlock must be launched with the -condebug command-line flag. Three launch workflows are supported:

1. Desktop / Application Menu Shortcut (Recommended)

Launch RubyLock RPC from your Desktop shortcut (Windows) or application menu (Linux). With the default launch_game_on_start = true:

  • RubyLock RPC starts the system tray icon and Discord IPC connection.
  • RubylockRpc::Launcher.launch_deadlock checks whether deadlock.exe is already running.
  • If not running, it locates Steam and invokes:
    <steam_executable> -applaunch 1422450 -condebug

2. Steam Launch Options (--launch-with-command)

In Steam, right-click Deadlock -> Properties -> General -> Launch Options and set:

rubylock-rpc --launch-with-command -- %command%

(On Linux, if $HOME/.local/bin is not in Steam's environment PATH, use $HOME/.local/bin/rubylock-rpc or the full path to the executable.)

Launcher.launch_deadlock_with_command appends -condebug automatically if it is not already present (case-insensitive check) and spawns Steam's %command%. If another instance of RubyLock RPC is already active, the new invocation launches the game command and waits for the game process to exit while the existing instance keeps updating Discord.

3. Manual Launch (--no-launch)

Add -condebug manually to Deadlock's Steam Launch Options, then start RubyLock RPC independently:

rubylock-rpc --no-launch

Steam Library & Game Folder Auto-Detection

RubylockRpc::Steam (lib/rubylock_rpc/steam.rb) locates game/citadel/console.log automatically in the following priority order:

  1. Configured Override (general.game_folder in config.toml):
    • Verified by checking that <game_folder>/game/citadel exists as a directory.
    • If the configured path is no longer valid (for example, Deadlock was moved to another Steam library drive), RubyLock RPC logs a warning, re-runs auto-detection, and persists the newly found path back to config.toml.
  2. Steam libraryfolders.vdf + appmanifest_1422450.acf:
    • Windows: Queries HKCU\Software\Valve\Steam (SteamPath) via win32/registry, falling back to C:\Program Files (x86)\Steam and C:\Program Files\Steam, then reads <SteamRoot>\steamapps\libraryfolders.vdf.
    • Linux: Checks:
      • $HOME/.steam/steam/steamapps/libraryfolders.vdf
      • $HOME/.local/share/Steam/steamapps/libraryfolders.vdf
      • $HOME/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/libraryfolders.vdf (Flatpak Steam)
    • For each "path" entry in libraryfolders.vdf, checks for steamapps/appmanifest_1422450.acf, extracts "installdir", and resolves <lib>/steamapps/common/<installdir>/game/citadel/console.log.
    • Once found, the detected game root is automatically persisted into general.game_folder in config.toml.
  3. Hardcoded Fallback Locations:
    • Checks standard steamapps/common/Deadlock/game/citadel/console.log paths under the default Windows or Linux Steam directories.

For Steam executable discovery (Steam.steam_exe_path):

  • Windows: <SteamRoot>\steam.exe.
  • Linux: Searches PATH for steam, then checks $HOME/.local/share/Steam/steam.sh, $HOME/.steam/steam.sh, /usr/bin/steam, and /usr/local/bin/steam.

Clone this wiki locally