Repository navigation
Install, update and uninstall apps from LaunchX - #2
Merged
Merged
Conversation
A manifest can now say how to install its project from a checkout, in a top-level [install] table: the installer, an uninstaller, the tools it needs, and where the app keeps the user's data (SPEC §4.9). - lx install <git URL | owner/repo | folder> clones a repository into ~/.launchx/sources/<name> (a folder is installed where it is), shows the services, the installer and the data paths, asks, then stops what was running, runs the installer, registers the app and starts it again. - lx update pulls each app and reruns its installer when there is something new; --check only reports. The launcher also checks at start and every twelve hours. - lx uninstall stops the app, runs its uninstaller, unregisters it and deletes the checkout LaunchX cloned. The data stays. - installs.json records each app's source, checkout, commit and data. - The page gets Install app (with the plan shown first), Check for updates, and Update / Uninstall on each installed app's card. These run as one job at a time, its output streamed to the log panel. - Cards no longer overflow a phone-width screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LaunchX can now install apps, not only run them.
A manifest may carry a top-level
[install]table naming its installer, an uninstaller, the tools it needs and where the app keeps the user's data (SPEC §4.9). With it:lx install <git URL | owner/repo | folder>clones a repository into~/.launchx/sources/<name>(a folder is installed where it is), shows the services, installer and data paths, asks, then stops what was running, runs the installer, registers the app and starts it again.lx update [name…]pulls each app and reruns its installer when there is something new.--checkonly reports. The launcher also checks at start and every twelve hours.lx uninstall <name>stops the app, runs its uninstaller, unregisters it and deletes the checkout LaunchX cloned. The data stays.installs.jsonrecords each app's source, checkout, commit and data paths (SPEC §10.8).Also: cards no longer overflow a phone-width screen.
Tested with
tests/install.rs, which installs, updates and uninstalls a git repository through the CLI and the API against a real daemon, and by hand on the page.Companion change in Schedule Everything: AutoPhd-org/schedule-everything#22 adds its
[install]table and an uninstaller.🤖 Generated with Claude Code