feat(launcher): the Hookshot Launcher, one app to build, update and play every version #2739
Open
github-sync
wants to merge 7 commits from
github/pr/2739 into main
pull from: github/pr/2739
merge into: MagicBeanDev:main
MagicBeanDev:main
MagicBeanDev:github/pr/2893
MagicBeanDev:github/pr/2890
MagicBeanDev:github/pr/2887
MagicBeanDev:github/pr/2878
MagicBeanDev:github/pr/2875
MagicBeanDev:github/pr/2874
MagicBeanDev:github/pr/2873
MagicBeanDev:github/pr/2871
MagicBeanDev:github/pr/2756
MagicBeanDev:github/pr/2897
MagicBeanDev:github/pr/2896
MagicBeanDev:github/pr/2718
MagicBeanDev:github/pr/2842
MagicBeanDev:github/pr/2691
MagicBeanDev:github/pr/2895
MagicBeanDev:github/pr/2743
MagicBeanDev:github/pr/2765
MagicBeanDev:github/pr/2708
MagicBeanDev:github/pr/2732
MagicBeanDev:github/pr/2755
MagicBeanDev:github/pr/2817
MagicBeanDev:github/pr/2876
MagicBeanDev:release-please--branches--main
MagicBeanDev:release-please--branches--main--release-notes
MagicBeanDev:github/pr/2778
MagicBeanDev:github/pr/2888
MagicBeanDev:github/pr/2866
MagicBeanDev:github/pr/2877
MagicBeanDev:github/pr/2800
MagicBeanDev:github/pr/2829
MagicBeanDev:github/pr/2850
MagicBeanDev:github/pr/2889
MagicBeanDev:github/pr/2882
MagicBeanDev:github/pr/2860
MagicBeanDev:github/pr/2849
MagicBeanDev:github/pr/2886
MagicBeanDev:github/pr/2794
MagicBeanDev:github/pr/2840
MagicBeanDev:github/pr/2830
MagicBeanDev:github/pr/2834
MagicBeanDev:github/pr/2719
MagicBeanDev:github/pr/2742
MagicBeanDev:github/pr/2741
MagicBeanDev:github/pr/2820
MagicBeanDev:github/pr/2771
MagicBeanDev:github/pr/2859
MagicBeanDev:github/pr/2858
MagicBeanDev:github/pr/2823
MagicBeanDev:github/pr/2757
MagicBeanDev:github/pr/2769
MagicBeanDev:github/pr/2844
MagicBeanDev:github/pr/2843
MagicBeanDev:github/pr/2673
MagicBeanDev:github/pr/2855
MagicBeanDev:github/pr/2807
MagicBeanDev:github/pr/2851
MagicBeanDev:github/pr/2789
MagicBeanDev:github/pr/2814
MagicBeanDev:github/pr/2818
MagicBeanDev:github/pr/2774
MagicBeanDev:github/pr/2772
MagicBeanDev:github/pr/2750
MagicBeanDev:github/pr/2786
MagicBeanDev:github/pr/2785
MagicBeanDev:github/pr/2782
MagicBeanDev:github/pr/2779
MagicBeanDev:github/pr/2775
MagicBeanDev:github/pr/2706
MagicBeanDev:github/pr/2766
MagicBeanDev:github/pr/2747
MagicBeanDev:github/pr/2759
MagicBeanDev:github/pr/2745
MagicBeanDev:github/pr/2740
MagicBeanDev:github/pr/2733
MagicBeanDev:github/pr/2725
MagicBeanDev:github/pr/2727
MagicBeanDev:github/pr/2728
MagicBeanDev:github/pr/2729
MagicBeanDev:github/pr/2721
MagicBeanDev:github/pr/2722
MagicBeanDev:github/pr/2715
MagicBeanDev:github/pr/2714
MagicBeanDev:github/pr/2707
MagicBeanDev:github/pr/2703
MagicBeanDev:github/pr/2705
MagicBeanDev:github/pr/2697
MagicBeanDev:github/pr/2679
MagicBeanDev:github/pr/2676
MagicBeanDev:github/pr/2669
MagicBeanDev:docs/what-hookshot-connects-to
MagicBeanDev:fix/hdr-encode-test
MagicBeanDev:fix/main-tests
MagicBeanDev:fix/play-cache-files
MagicBeanDev:perf/game-barrier-order
MagicBeanDev:feat/heap-lazy
MagicBeanDev:feat/texture-detail
MagicBeanDev:perf/astc-opaque-bc1
MagicBeanDev:fix/fs-dir-lock
MagicBeanDev:fix/framegen-native-kept
MagicBeanDev:fix/update-no-downgrade
MagicBeanDev:port/k10-gcn-f16-mirrors
MagicBeanDev:fix/framegen-mult-cap
MagicBeanDev:chore/release-as-2.1.1
MagicBeanDev:perf/pcache-load-switch
MagicBeanDev:fix/prepare-progress-log
MagicBeanDev:fix/update-closes-stale-game
MagicBeanDev:fix/hdr-scaled-sampled
MagicBeanDev:perf/first-start-preset
MagicBeanDev:perf/zero-upload
MagicBeanDev:fix/vcore-escape-2s
MagicBeanDev:test/fake-gh-atomic
MagicBeanDev:perf/batch-idle-flush
MagicBeanDev:test/finish-stub-a
MagicBeanDev:chore/record-2.1.0
MagicBeanDev:fix/main-red-tests
MagicBeanDev:fix/test-display-startup-driver-cache
MagicBeanDev:feat/mesh-shader-mode
MagicBeanDev:fix/menu-probes-at-startup
MagicBeanDev:fix/fps-counter-classic
MagicBeanDev:fix/test-log-batch-flake
MagicBeanDev:fix/narrow-screen-hud
MagicBeanDev:ci/prereleases
MagicBeanDev:release/v2.0.15
MagicBeanDev:hotfix/v2.0.15
MagicBeanDev:fix/present-ahead-replay
MagicBeanDev:release/v2.0.13
MagicBeanDev:fix/bracket-paths-2013
MagicBeanDev:fix/hdr-overlays-2013
MagicBeanDev:fix/fps-counter-scale-2013
MagicBeanDev:fix/stick-seen-at-rest
MagicBeanDev:hotfix/menu-fits-screen
MagicBeanDev:fix/f1-always-opens-menu
MagicBeanDev:fix/ini-keep-lines
MagicBeanDev:claude/cranky-pike-7cf247
MagicBeanDev:perf/texture-answer-flat
MagicBeanDev:fix/stamp-test-modules
MagicBeanDev:fix/appimage-fonts
MagicBeanDev:fix/display-awake
MagicBeanDev:release/v2.0.12
MagicBeanDev:fix/discord-windows
MagicBeanDev:rc/v2.0.12-tests
MagicBeanDev:fix/dlss-keep-feature
MagicBeanDev:rc/v2.0.12
MagicBeanDev:button-icons
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
autorelease: pending
autorelease: tagged
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
github_actions
Pull requests that update GitHub Actions code
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
question
Further information is requested
testing wanted
wontfix
This will not be worked on
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!2739
Loading…
Reference in a new issue
No description provided.
Delete branch "github/pr/2739"
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?
Windows and Linux each have their own Builder today, and a PC keeps only one built version of Hookshot at a time. Hookshot 3.0 replaces both with one launcher that builds, updates and plays several versions side by side (release, release candidate and nightly), and copies saves between them and the emulators.
Depends on: #2733 (nightly naming) and #2722 (the 2.x hand-over contract and upgrader). This branch carries their commits until they merge. Please review only the four launcher commits on top of them:
feat(launcher): the launcher's core library, with its testsfeat(launcher): the Avalonia app shellfeat(launcher): what the launcher's screens need from the core: game files found, checked, built and timedfeat(launcher): the launcher's screens, from the design mockupRelated:
What changed
Core (
launcher/Core, no UI and no packages):Updater.csandlinux_update.py, checked againsttests/test_update_tracks.py's own vectors. Nightlies use #2733'snightly-<count>-<commit>names, and nightlies and releases are never ordered against each other. Each build follows its own channel, and an update is offered only when it is newer on that channel.<home>/toolchains/<tag>, installed from that release's parts list (hookshot-setup.txtorhookshot-linux.txt). Every part is checked for size and SHA-256 before it is unpacked. Zip entries that would land outside the folder are refused, and so are links that escape it. A part another version already has is hard-linked rather than downloaded again. Downloads are https only, also after redirects.builds.json: the list of builds, with exactly one default.docs/launcher-upgrade.md): reads the import files and, on a first start, the Builder's own settings. An import file is deleted only once what it brought has been saved.Runner.InfoandAppRunbuild them. Its@@lines become one progress bar that never goes back. Cancel kills make_game's own process tree and nothing else.scripts/oot_saves.py. It finds saves in Hookshot and the emulators, takes a backup before every copy, and refuses while a game or emulator runs.Finder), disk space, shortcuts, the GPU makers on Linux.App (
launcher/App, Avalonia 12):INotifyPropertyChanged, with one compiled-binding view per page.--launch,--update [--tag] [--fetched]and--play, so the game's own update prompt and the shortcuts keep working.Screens (from the design mockup):
~on Linux.Safety calls worth checking:
~/Games/Hookshotholds the new builds for now);scripts/ngx_sdk.pyandscripts/ffx_sdk.pyfetch.Why Avalonia, and the first NuGet dependency
One UI codebase has to run natively on Windows and Linux, and WPF and Tk each cover only one. Avalonia is MIT-licensed, mature and draws the same on both, with native Wayland. This is the repository's first NuGet dependency, so it is kept tight:
Directory.Packages.props, withpackages.lock.jsonfor everything they bring in. Those are SkiaSharp, HarfBuzzSharp, Tmds.DBus, NWayland and MicroCom, all MIT.NuGet.Configallows nuget.org only.launcher/Corehas no packages at all: the tests compile its sources directly.UseWaylandWithFallback()uses native Wayland where there is a compositor and falls back to X11 otherwise. On Windows it does nothing (Avalonia's docs).How it was tested
python -I -B tests/run_all.pyon Linux: 425 passed, 67 skipped. The only failures are the two known local ones,test_bake_portability(no zstandard here) andtest_builder_log_read_only(no Tk here).tests/test_launcher_core.py: 453 checks over temporary folders, with a UTF-8 scratch path (ゲーム Zélda 🎮). They cover:test_oot_saves.py;It also passes at each of the four commits.
dotnet build launcher/HookshotLauncher.slnx: 0 warnings, with warnings as errors.An end-to-end run on Linux, using a fake parts list (
file://) and a stand-in make_game: download, check, build, Ready, and the row inbuilds.json.CI:
source-regressions.ymlnow installs .NET 10 next to the Builder's 8 on Linux and Windows, so the core test runs in "Every test". Part 1 of each system compiles the solution withRestoreLockedMode.Not tested:
CreateHardLinkW), the PowerShell shortcuts, the reduced-motion check, process detection, and%LOCALAPPDATA%paths. CI's Windows compile with SDK 10 has not run yet.bin/hookshotdirectly. It does not go throughplay-diagnostics.shor its own systemd scope as the 2.x Linux Builder does.Planned next (not in this PR)
~/Games/Hookshot/versions/<version>and saves and settings in~/Games/Hookshot/profiles, with an importer that moves a 2.x install into it.hookshot-launcher.txtand the per-platform tools lists;docs/launcher-upgrade.md, sections 1 and 5).Open design decisions
The calls this PR makes are listed in launcher/README.md, "Open design decisions". Each one can be changed:
Screenshots
These are headless renders (Avalonia.Headless and Skia, 960x600 at 1x) with fake builds, saves and game files, and a fake home folder shown as
~. Headless rendering draws blurred shadows poorly: the glows under Play and the main buttons show as dark corners here, though they are soft glows in the app.Before and after the styling pass
Every other screen
A PR for this branch: https://github.com/hckrman101/Hookshot/pull/20 (one commit on top of
fabb12cd). It adds plain-language problem screens with the fix, finds a game crash in the last run's log at the next start, and a Send report button with consent asked once. Sending needs a report inbox; docs/launcher-reports.md there has the API, and until one exists the button copies the report and opens the issue form. Could magicbean.dev host the inbox? (_trash.panda's agent)