feat(mods): a Mods page for the Rust launcher, with Discover, repositories and reviews #292
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!292
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:feat/rust-launcher-mods"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Players need a Mods page in the Rust launcher: a place to see what is installed, find mods in repositories, and be asked before a mod's code or permissions are trusted. Contributors and testers need a pull request's version built on their own PC, with nothing installed but the launcher. This does both, on today's main.
What changed
ErrorCard): title, summary, the builder's log tail, Copy. Used for the Mods page and for a failed build.vendor/build-tools,scripts/build_tools.py). It downloads the commit's source, installs the tools itstools.locknames, compiles that commit's own builder once, and lets it build the version. No compiler, CMake, Ninja, Python, git or archiver is needed on Linux or Windows. A commit too old to build says so on its card. The build's cache is kept to 8 GB.src/storage/reclaim.rsreformatted as rustfmt writes it (main failedcargo fmt --check).Follow-up from testing
mod-api72711731 (manifestdescription/sourceCode, indexdescription/source_code).Head
33a86bb2: fmt, clippy, 388 tests (2 ignored), translations and the release build pass on Linux. The Windows clippy and the source build figures above are from the earlier headc120f177.Tested
All on Linux (RTX 3090 PC), through the PC's job queue, on this head:
cargo fmt --check,cargo clippy --workspace --all-targets -D warningson Linux and for Windows (x86_64-pc-windows-gnullvm, llvm-mingw),cargo test --workspace(383 passed, 2 ignored),scripts/translations.py,tests/test_launcher_core.py,scripts/build_tools.py checkagainst Longshotmod-apib9bf697b, andcargo build --release: all pass.mod-api(b9bf697b) through the launcher's own build (e2e_source_build), from an empty cache, to a version whoseinfoanswers:from-source/.Note:
adding_the_same_release_twice_creates_distinct_instancesandcopies_verified_artifacts_without_sharing_files_or_profile_datarefuse to run, and fail, while anylongshot-builderor game runs on the PC. They passed here because none was running.Still to test
🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
WIP: feat(mods): a Mods page for the Rust launcher, with Discover, repositories and reviewsto feat(mods): a Mods page for the Rust launcher, with Discover, repositories and reviews08844a5df3b13272c4b0Rebased onto main after #284 merged (old head
08844a5d, new headb13272c4). Also adds the Mods page's texts to every catalog, since main's translations check now finds them. fmt, clippy, cargo test (171 passed), the release build and the translations check pass through the job queue.Rebased onto main again (old head
b13272c4, new headd33cb08c, on #299). Only ui/game-versions.slint (kept #301's layout, with the Add version button primary) and the catalogs conflicted. fmt, clippy, cargo test (173 passed), the release build and the translations check pass through the job queue.b13272c4b0d33cb08c71Rebased onto main (#318) again (old head
d33cb08c, new head1c08ce08). #318's switching mods while the game runs now also covers a required dependency's enable. One #318 test now starts from an accepted mod, because this page shows a mod awaiting its code review as off. fmt, clippy, cargo test (182 passed), the release build and the translations check pass through the job queue.d33cb08c711c08ce08ba1c08ce08ba5f40bf927bRebased onto main (#388): new head
5f40bf92(was1c08ce08). Conflicts resolved, including the mods page taking main's HeaderStatus, ListCard and changed-switches work. UI now uses the shared ListCard, Pressable, SideSheet and ConfirmDialog, icons instead of text glyphs, and repository rows are reachable by keyboard and controller. Cold-review fixes: Enter selects a card instead of toggling it, the page notes show, disk refresh keeps open reviews, command timeouts corrected. fmt, clippy, cargo test (298) and the translations check pass. Screenshots need retaking.5f40bf927b5776ba7eb6Final pass, new head
5776ba7e(was5f40bf92): the pull-request block in Add version now follows the data and cache folder button, and a built PR version shows its title, author and BigBean line in the Versions sidebar; an ErrorCard (with Copy) for failures at the foot of the main area; Discover paging, dash search words, the restart marker, cleaned review values; every new text in all catalogs; the unreachable Manual/Emulators sections and the hidden toggles removed. fmt, clippy, tests (306), translations and the release build pass; a second cold review's fixes are in. Screenshots to retake.main's and mod-api's builders get titles of their own ("This version's builder isn't ready yet", ...), translated in every catalog; a test holds each state's title to its kind. The wizard's note for a processor the prebuilt versions can't run no longer offers the removed build from source. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016o1k1SQVyAWsujjFVd8Wuc7d2beba602219390dade1de8c3e444444730ec603075355ae7c120f177b1Updated for the new head
c120f177: rebased onto current main, with manual add, mods changing while the game plays, the build-tools cleanup and the Windows build fix. The history was rewritten (the old head was3075355a).Pushed
33a86bb2: the changes from testing the launcher (see "Follow-up from testing" in the description).🤖 A player building MagicBeanDev/Longshot#2966 (4571673d) from the Launcher gets
scripts/renhdrum.py has no RUST_VERSION. The Launcher uses the newest nightly's builder, made from main, and it can't read mod-api'stools.locklayout. This pull request looks like the fix. From reading the code, the order matters:tools.locknames no Rust.Longshot.x86_64where the new builder makesLongshot.Could the two go out together, or could the Launcher keep the nightly builder for commits with the old layout? Nothing was built or run from the pull request. The checks were code reading, plus main's two parsers run on both trees' files.
The Preferences, Update and mod store status lines, the diagnostics' Saved and Sent lines, the tools note, the notices, the requirements summary and the file dialogs' titles were set from Rust as bare English, drawn as they came. They go through i18n::now() now: the text in the language the launcher shows (kept by bind and Preferences), with a line in each full catalog. scripts/translations.py finds now() keys and fails on a set_<property>("...") literal that is not wrapped (file names and internal phases excepted). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ