doctor: build dependencies (JDK with the version the project needs, Android SDK command-line tools, CocoaPods, Node, Bun, bundletool), too-old status, doctor --install <tool> --yes runs the package-manager command (never sudo); desktop Dependencies shows too old; gen-flags works on Windows paths
This commit is contained in:
parent
a8a889fb35
commit
2598c4953a
10 changed files with 137 additions and 14 deletions
|
|
@ -15,6 +15,7 @@ const TOOL_ICON: Record<string, IconName> = { ffmpeg: 'image', ffprobe: 'search'
|
|||
/** Status chip of one tool. */
|
||||
export function toolState(x: ToolStatus): { text: string; tone: 'ok' | 'warn' | 'accent' } {
|
||||
if (!x.found) return { text: t('deps.missing'), tone: 'warn' };
|
||||
if (x.status === 'outdated') return { text: t('deps.outdated', { version: x.required ?? '' }), tone: 'warn' };
|
||||
return x.source === 'app' ? { text: t('deps.appCopy'), tone: 'accent' } : { text: t('deps.installed'), tone: 'ok' };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue