Desktop: Install CLI (#6526)

Co-authored-by: Brendan Allan <git@brendonovich.dev>
This commit is contained in:
Daniel Polito 2026-01-05 14:07:46 -03:00 committed by GitHub
commit 8e9a0c4ad0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 364 additions and 185 deletions

View file

@ -2,6 +2,7 @@ import { Menu, MenuItem, PredefinedMenuItem, Submenu } from "@tauri-apps/api/men
import { type as ostype } from "@tauri-apps/plugin-os"
import { runUpdater, UPDATER_ENABLED } from "./updater"
import { installCli } from "./cli"
export async function createMenu() {
if (ostype() !== "macos") return
@ -19,6 +20,10 @@ export async function createMenu() {
action: () => runUpdater({ alertOnFail: true }),
text: "Check For Updates...",
}),
await MenuItem.new({
action: () => installCli(),
text: "Install CLI...",
}),
await PredefinedMenuItem.new({
item: "Separator",
}),