WIP: feat(versions): install a version from a release's offline builder, and build with tools.lock's llvm #256
No reviewers
Labels
No labels
area/build
area/install
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!256
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:feat/offline-builders"
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?
Summary
The Launcher side of Longshot's #2295, which renames the
Linux compiler tool from
emsdktollvmand adds offline builders to each release.Core/MakeGameCommand.csgives a Linux buildLONGSHOT_LLVM=<lib>/llvmwhen the version has it, elseEMSDK=<lib>/emsdkas before, and takes the other one out, so the PC's own is never used.Core/ShaderCaches.cskeys an llvm version's shader caches by the llvm folder and an emsdk version's exactly as before (they keep sharing).
tests/test_launcher_core.py --longshottakes either list.and "No internet? …" on an empty home) takes
LongshotBuilder-<v>-windows-x64-offline.ziporLongshot-<v>-offline-x86_64.AppImage, with the release'sSHA256SUMSandSHA256SUMS.sigbeside it.Core/OfflineBuilder.cschecks the signature with the launcher's release keys, then the file's SHA-256 against thesigned list (which gives its version), then installs it through the usual wizard. Windows takes each tool from the zip's
tools/<sha256>.zip, checked against tools.lock. Linux takes the tools the AppImage carries at their dests (recorded astheir parts, so the next version reuses them). Nothing goes to the network: a part the file lacks fails.
Read first:
Core/OfflineBuilder.cs,Core/Toolchains.cs(thecarriedtools, the zip'stools/skipped),App/ViewModels/HomeViewModel.cs.Testing
Tested:
dotnet build LongshotLauncher.slnx(0 warnings) and the core checks compiled, on Linux (CachyOS). Not run:no checks run on this PC (the maintainer's rule), and the app hasn't been started.
Still to test:
Longshot-<v>-offline-x86_64.AppImagewith the network off, expecting it to install,build and play, and the next downloaded version to reuse its tools (by hand, once #2295's first release has the file)
LongshotBuilder-<v>-windows-x64-offline.zip(by hand)Risks
again once. Different compilers, so correct.
🤖 Generated with Claude Code
Replaced by #257: the builder now owns its build tools (Longshot #2295's refactor), so the Launcher installs only the builder; the offline import and the llvm fix are carried over there.
Closed in favour of #257.
Pull request closed