Skip to content

Build the launcher for Android (test builds) - #613

Merged
elripalda merged 4 commits into
mainfrom
claude/project-thread-xs9fyw
Nov 26, 2026
Merged

elripalda merged 4 commits into
mainfrom
claude/project-thread-xs9fyw

Conversation

@elripalda

@elripalda elripalda commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Requested by Ruben · project thread

What this changes

First step toward an Android version: the launcher now builds as an Android app (APK) for testing. Nothing changes for the PC launcher.

  • The Android build leaves out what only a PC has: tray icon, global shortcuts (F12), a second copy handing over to the first, Discord status, the picture clipboard and SDL controllers. On Android the window reads controllers itself (navigator.getGamepads, the fallback the PC window already has).
  • src-tauri/src/mobile.rs gives the window calls a phone doesn't have (minimise, maximise, full screen, frameless or always-on-top windows, the tray) a do-nothing stand-in, so the shared code stays exactly as it is on PC. pads_mobile.rs and tray_mobile.rs stand in for pads.rs and tray.rs.
  • The PC-only crates move to a desktop-only section in Cargo.toml.
  • Android needs 8.0 or newer (bundle.android.minSdkVersion 26): the RAR unpacker uses lutimes, which Android's C library has from 8.0. build.rs gives unrar an empty libpthread.a on Android, where threads live in libc.
  • Adds the Android Studio project (src-tauri/gen/android, with the launcher's icon) and an Android workflow that builds a test APK when the Android parts change, or by hand. The APK is kept for one day.
  • docs/BUILDING.md has a short Android section.

This is the base only: the Android screens, installing Android games and the Android catalog come in their own pull requests.

How you tested it

  • cargo test --lib on Linux: 1260 passed, 0 failed. node --test tests/*.test.cjs: 1044 passed.

  • PR checks pass on Windows, macOS, Ubuntu, Arch, Flatpak and Nix.

  • The Android workflow builds the APK (arm64).

  • npm test passes

  • node --test tests/*.test.cjs passes

  • Tried it in the launcher (npm run dev)

Checklist

  • One change per pull request
  • Not a fix for one recomp's own quirks
  • No version bump or patch notes
  • Doesn't change what developers can write in recomplauncher.json

The Rust core now builds for Android with Tauri's Android support. What only a
PC has (tray, global shortcuts, single instance, Discord status, picture
clipboard, SDL controllers) is left out there; mobile.rs gives the desktop-only
window calls a do-nothing stand-in so shared code stays as it is on PC.
Adds the Android Studio project and a workflow that builds a test APK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@elripalda elripalda self-assigned this Nov 26, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The RAR unpacker uses lutimes, which Android's C library has from Android 8.0
(API 26), and installing other apps needs 8.0 too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@elripalda
elripalda marked this pull request as ready for review November 26, 2026 20:21
@elripalda
elripalda merged commit e05984a into main Nov 26, 2026
7 checks passed
@elripalda
elripalda deleted the claude/project-thread-xs9fyw branch November 26, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants