Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add installRoot to /getConfiguration method #159

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

throwaway96
Copy link
Member

@throwaway96 throwaway96 commented Nov 26, 2023

The /getConfiguration Luna method now returns the root path of Homebrew Channel's installation as installRoot. Currently this will be /media/developer/apps in the vast majority of cases, but this feature will make it easier to support installation elsewhere in the future.

While it looks like there are no significant changes to path.resolve() between Node.js v0.10.x, v0.12.x, v8.x, v12.x, and the current version, I put it inside a try block anyway. You never really know with node.

Appears to work:

{"returnValue":true,"root":false,"installRoot":"/media/developer/apps","telnetDisabled":true,"failsafe":false,"sshdEnabled":true,"blockUpdates":true}

EDIT: Renamed to homebrewBaseDir.

@throwaway96 throwaway96 force-pushed the installRootPath-20231126 branch from d4e0cde to fa8ab48 Compare December 6, 2023 11:36
@throwaway96 throwaway96 marked this pull request as ready for review December 6, 2023 11:38
@throwaway96 throwaway96 requested a review from kitsuned December 6, 2023 11:39
services/service.ts Outdated Show resolved Hide resolved
@throwaway96 throwaway96 force-pushed the installRootPath-20231126 branch 2 times, most recently from 1e4a704 to a6765af Compare December 11, 2023 22:02
@throwaway96 throwaway96 requested a review from kitsuned December 11, 2023 22:03
Allows callers to determine where Homebrew Channel is installed. This
will usually be /media/developer/apps.
@throwaway96 throwaway96 force-pushed the installRootPath-20231126 branch from a6765af to 19bd0a5 Compare December 11, 2023 22:07
@throwaway96 throwaway96 merged commit d1898e8 into webosbrew:main Dec 11, 2023
1 check passed
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